An update after returning from a long journey and some development afterwards:New resources:
Okay, it was more than 1 line to perfectly integrate it, but now I have an own resource-system, followed by a bunch of modoptions. Metal can still be used if desired and both "my" resources and/or metal can be scaled by a factor or adjusted to a fixed amount, if someone doesn't like my resmap or the metallayout of a map. If a resource-file doesn't exist, it falls back to metal-mode.
A random-resource-spawner might be another idea, to make games a bit less predictable beforehand.
File comment: New resources
gui1.png [176.91 KiB]
Downloaded 2 times
Besides the "x units selected" hiding behind the minimap, all former GUI-Components are removed. (Someone knowing, how to get rid of the text?)
File comment: Building Modules
gui2.png [ 73.06 KiB | Viewed 295 times ]
All buttons show tooltips with descriptions and costs
File comment: Unit-Buildmenu
gui4.png [ 329.21 KiB | Viewed 295 times ]
The unit-build-menu was renewed by codestructure and look. One can choose the components in any order, the last click sends the order. The blueish icons are the selected ones.
Selected units are shown by icon in the bottom part. Didn't take a screen how it looks with more than 1 unit, but i can tell, that they are shown smaller. So there always is 1 "mainunit" in a selection (this is important for the other bits of the GUI)Code:
Besides adding code, some existing lines have changed to make it easier now or later. Research is disabled at the moment, since i will change it a bit more too.
As you can see on the one screen, a multiple of a unit-weapon-combination can be ordered at one time with the typical Hotkeys (i.e. 5,20,100 Units). A repeat-function is also there, but I hope it's never used. I don't have stumpys anyway Beauty:
I still follow the concept of "the data is there". So the game-play and passing data around works fine now, it might just need a better representation.
Write random-resource-spawner with different presets in ModOptions?
Support for several resource-files per Map?
Widget to make creating resource-files just pushing buttons instead of C&P
Fiddle around in other GUI-Widgets
Continue with the useless-buttons-widget for attack etc.
Evaluate, if moving weapons by lua is better than transports (they make the weapons wobble quite a bit on bumpy terrain)