-
Who's Online 5 Members, 0 Anonymous, 149 Guests (See full list)
-
Topics
-
Posts
-
The battalions need a lot of disposable units to work. We currently have meta where all you do is mass cheap, disposable CS units. Ergo, if this meta doesn't change, we can implement unique battalions to make this meta more interesting.
-
I think Starcraft 2 had something similar where you could set workers to auto-repair.
-
Hi @Adriano0ad, Here is a solution if you want to control the margin between buttons dynamically. No file replacement needed. If you want to change the margin for all panels: setPanelObjectPosition = new Proxy(setPanelObjectPosition, {apply: function(target, thisArg, args) { const vMargin = 3; // Vertical margin between buttons const hMargin = 3; // Horizontal margin between buttons target(args[0], args[1], args[2], vMargin, hMargin); }}); and place this code in a new file gui/session/unit_commands~MyMod.js. If instead, you want to change the margin for one/some panel(s) only (f.e. "Construction" panel): g_SelectionPanels.Construction.setupButton = new Proxy(g_SelectionPanels.Construction.setupButton, {apply: function(target, thisArg, args) { const ret = target(...args); // Run original function const vMargin = 3; // Vertical margin between buttons const hMargin = 3; // Horizontal margin between buttons const data = args[0]; setPanelObjectPosition(data.button, data.i + getNumberOfRightPanelButtons(), data.rowLength, vMargin, hMargin); return ret; }}); and place this code in a new file gui/session/selection_panels~MyMod.js.
-
By wowgetoffyourcellphone · Posted
I don't quite understand what you mean here. Restate? Oh, I have a complete vision for how the game would look with hard battalions. The problem is, there are about a dozen contributors to the codebase of the game all with their own vision so that the current meta of the game just moves forward with its own limp inertia. -
Hi @Adriano0ad, I'm guessing what you mean is that you resized the panel and now you want icons to fit better in the panel. The spacing is calculated dynamically so you should only have to increase the number of items per row. In the selection_panels.js for example : g_SelectionPanels.Construction = { "getMaxNumberOfItems": function() { return 40 - getNumberOfRightPanelButtons(); }, "rowLength": 10, // <<<< INCREASE THIS NUMBER to 12 for example "getItems": function() { ...
-
