Search

Search found 18 matches

by DrHash
15 Sep 2011, 21:27
Forum: Lua Scripts
Topic: Advanced mouse thumb buttons
Replies: 3
Views: 622

Re: Advanced mouse thumb buttons

A cool feature would be to be able to use thumb buttons without having to later press mouse button 1; for instance, just keep pressed one thumb button in order to extend the reclaim, repair or attack circle. When pressing both buttons at once, the reclaim/repair/attack circle would then be replaced ...
by DrHash
15 Sep 2011, 21:05
Forum: Lua Scripts
Topic: Advanced mouse thumb buttons
Replies: 3
Views: 622

Re: Advanced mouse thumb buttons

Well, assuming that the first button release deletes the second button release, I've written this other version, which seems to work: -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -...
by DrHash
15 Sep 2011, 20:07
Forum: Lua Scripts
Topic: Advanced mouse thumb buttons
Replies: 3
Views: 622

Advanced mouse thumb buttons

Hi folks, I've been playing around with widget Mouse Reclaim (http://widgets.springrts.de/springinfo/index.php#187). This widget assigns actions to mouse thumb buttons (buttons 4 and 5). I finally ended with a completely different widget which is supposed to do the following things: - pressing and r...
by DrHash
09 Sep 2011, 17:31
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

Statements such as return x = x make me crazy... assign x to x and return x? For me this is equivalent to just writing return x I guess in Lua this has some special meaning, please enlighten me. Also this statement is confusing: x = y or z or t It seems this means to assign to x the value of the fir...
by DrHash
09 Sep 2011, 14:57
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

Avoiding the need for modifying the widget depending on the configuration of each user is a requirement for bundling the widget with the games. With respect to which function is less called, DrawScreen or Update, it seems the answer is they are equally called; I tested the following code... local dr...
by DrHash
09 Sep 2011, 14:25
Forum: Lua Scripts
Topic: Friend or Foe Team Platters
Replies: 12
Views: 1324

Re: Friend or Foe Team Platters

Thanks very_bad_soldier, I missed that widget. Indeed, it combines very well with the standard team platter widget. It would be nice to have this widget bundled with Spring as for the team platter widget. spring isn't one game. Ask your game of choice to include it. I know; I suggested that because...
by DrHash
09 Sep 2011, 14:20
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

Yes, in the first version I caught key and mouse events, but then each player should modify the widget depending on his uikeys.txt and widgets modifying mouse behavior. The current version does not depend on a particular keystroke/mouse configuration. The callin function I would need should be calle...
by DrHash
09 Sep 2011, 12:21
Forum: Lua Scripts
Topic: Friend or Foe Team Platters
Replies: 12
Views: 1324

Re: Friend or Foe Team Platters

Thanks very_bad_soldier, I missed that widget. Indeed, it combines very well with the standard team platter widget. It would be nice to have this widget bundled with Spring as for the team platter widget.
by DrHash
09 Sep 2011, 11:16
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

Indeed, gui_persistent_build_spacing.lua requires only to catch 2 events: - The player has clicked on a building icon or pressed a building keystroke -> change buildspacing to the last stored value for the selected building. - The player has finished to lay out the building -> store the current buil...
by DrHash
09 Sep 2011, 10:20
Forum: Lua Scripts
Topic: Friend or Foe Team Platters
Replies: 12
Views: 1324

Re: Friend or Foe Team Platters

I mentioned very_bad_soldier's widget because it is related to the problem of tweaking team platters in order to better distinguish ally units from enemy units. I said this solution does not satisfy me because you still have to recall your alliance's team colors. I propose to use two different shape...
by DrHash
09 Sep 2011, 01:48
Forum: Lua Scripts
Topic: Friend or Foe Team Platters
Replies: 12
Views: 1324

Re: Friend or Foe Team Platters

Other solution is proposed by very_bad_soldier http://widgets.springrts.de/index.php#105 This widget allows for defining colors for specific players and locally using them in all your games (e.g.: you can choose red color for your own units, but only you will see them as red). Yet we are faced with...
by DrHash
09 Sep 2011, 00:27
Forum: Lua Scripts
Topic: Friend or Foe Team Platters
Replies: 12
Views: 1324

Friend or Foe Team Platters

I like very much trepan's gui_team_platter widget for easily distinguishing units from different teams. However, in games with many players (e.g.: 2 alliances with 8 players each one) it can be difficult to distinguish friends from foes due to the amount of team colors to remember. I slightly modifi...
by DrHash
08 Sep 2011, 17:57
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

After studying the suggestions made by very_bad_soldier, I have come out with a quite neater version of the widget. The new features are: - the use of the built-in system for storing configuration data (if you have already used a previous version of this widget, recall to delete folder "LuaUI/W...
by DrHash
07 Sep 2011, 20:16
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

Ok, thanks for the suggestions. I'll later check how to use the built-in methods for storing config files. I was unsure of whether configuration data for different mods would mixed together or not. About the fast mouse wheel mode... I've got a logitech G9 mouse; its mouse wheel has 2 operation modes...
by DrHash
07 Sep 2011, 15:38
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

I added the warning message upon saving fail... catching build spacing commands is still a mystery to me, dunno even if it is possible. Any ideas will be welcome. At least I added functions at the end of the code for catching mouse buttons and keystrokes modifying build spacing. Uncomment/comment/mo...
by DrHash
07 Sep 2011, 12:34
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

Thanks! Hope it will be useful ;)
by DrHash
07 Sep 2011, 01:28
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Re: Persistent build spacing

I just solved the GameOver problem, thanks to [LCC]jK who suggested to use function GetConfigData instead. Here you are the new version: -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -...
by DrHash
07 Sep 2011, 01:02
Forum: Lua Scripts
Topic: Persistent build spacing
Replies: 28
Views: 3231

Persistent build spacing

Hi everyone, I had some free time and decided to program a Lua widget that keeps track of the last chosen build spacing for each building. Next time we request to build the same building, the last chosen build spacing for that building will be automatically restored for us. As well, build spacing se...

Go to advanced search