-
Who's Online 4 Members, 1 Anonymous, 301 Guests (See full list)
-
Topics
-
Posts
-
But there are text inputs when singing in to the multiplayer lobby. I guess a slider would work though
-
Making it a text input is definitely possible, but not straightforward, unfortunately. In the game settings code there are a lot of layers of abstraction, a lot of wrappers and super classes, to make adding new ones easy. Like the current dropdown. But there are no such classes for text inputs yet, since no game setting actually requires them. I suggest to try to make it a slider instead, this is easier since there are existing game setting controls that are sliders. See https://gitea.wildfiregames.com/0ad/0ad/commit/38eb999ff9d627ab319820a5fc77f332b100e32d
-
I am trying to make a text input box for starting resources. How would I make it text input: GameSettingControls.StartingResources = class StartingResources extends GameSettingControlDropdown { constructor(...args) { super(...args); this.dropdown.list = g_StartingResources.Title; this.dropdown.list_data = g_StartingResources.Resources; this.sprintfArgs = {}; g_GameSettings.startingResources.watch(() => this.render(), ["resources", "perPlayer"]); g_GameSettings.map.watch(() => this.render(), ["type"]); this.render(); } ...
-
can always try out CWA where these changes take place p[retty quickly. But also if you are playing mostly cav, catas in particular and you put in formation to move,t hey move at the speed of the slowest unit in formation, so then he would stay with the catas and move at their speed.
-
