[Request]

[Request]

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Locked
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

[Request]

Post by clericvash »

This would be an easy one, could someone make a widget that creates a scrollable box on the screen that shows the commands we can use (like healthbars, the different views, etc etc etc). I keep forgetting which key does what and this would be mighty useful.
Crampman
Posts: 117
Joined: 22 Dec 2005, 12:17

Post by Crampman »

Very easy :
1) Take a post-it
2) Write the commands
3) Stuck it on your screen
4) Done !

:wink:
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post by LOrDo »

Should be part of a tutorial if we ever are to make one.
User avatar
TechnoTone
Posts: 165
Joined: 23 Aug 2005, 22:02

Post by TechnoTone »

Either that or part of a keyboard mapper widget.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

I usually go through the F-keys (except for F10), one of them does what you want.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

Crampman wrote:Very easy :
1) Take a post-it
2) Write the commands
3) Stuck it on your screen
4) Done !

:wink:
could you upload that widget to UF plx
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

I don't think hes actually made one matt.

I would do it and it is probably the most easy thing to make, but i know nothing of LUA or anything :(

Maybe i should look it up?? Would anyone find it useful apart from me, i would gladly take time to look it up unless someone else can quickly do it.

edit > http://spring.clan-sy.com/phpbb/viewtopic.php?t=12145
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

clericvash wrote:I don't think hes actually made one matt.
Are you serious
Crampman
Posts: 117
Joined: 22 Dec 2005, 12:17

Post by Crampman »

I was jocking...sorry for the misunderstanding...

Anyway, I'm not good enough at lua to make a wibdget, even one as simple as that. :(
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

tombom wrote:
clericvash wrote:I don't think hes actually made one matt.
Are you serious
And the fucking point in that post was what?
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

there is no way to list commands wich aren't binding because of their current code structure (the widget reads the chat lines & tries to match for the command), so the widget you requested wouldn't be able to list them automatically unless:

a: you add a new table/class/function to add a binding to the list, and even in such case, all widgets would have to get updated in order to broadcast their command list

b: you maintain a txt/string/table based list with manual entries, but the job of this widget can be esily replaced by pen&paper(TM) with the advantage of not coding a GUI for it :P
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

clericvash wrote:
tombom wrote:
clericvash wrote:I don't think hes actually made one matt.
Are you serious
And the fucking point in that post was what?
And the point in this post? :roll:

Fairly hypocritical there...

I guess this would be a useful widget, I hardly use the F* keys as is, though.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Snipawolf wrote:
clericvash wrote:
tombom wrote: Are you serious
And the fucking point in that post was what?
And the point in this post? :roll:

Fairly hypocritical there...

I guess this would be a useful widget, I hardly use the F* keys as is, though.
Like i never saw that comming, i posted to point the guy out. Your just making it worse.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

You said that you didn't think the guy who said to
1) Take a post-it
2) Write the commands
3) Stuck it on your screen
4) Done !
had "actually made one" in response to someone clearly being sarcastic.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

I was replying to matt, and no it's not clear, you can't be clear on it through words on a screen.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

If I understand what you want correctly:
1./keysave (in game)
2. Print the results in $SPRING/uikeys.tmp

P.S. You could setup a widget to display the uikeys.tmp results in a scrollbox
(after having done Spring.SendCommands({'keysave'}) ). You could also use
the GetKeyBindings() and GetActionHotKeys() LuaUI call-outs to search for
specific bindings.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Post by lurker »

clericvash wrote:I was replying to matt
That's exactly what tombom said. Allow me to rephrase his sentence so it is clearer.
tombom (paraphrased) wrote:In response to lordmatt jokingly asking for crampman's widget,
you said you didn't think crampman had "actually made one."
It was obvious to pretty much everyone that both crampman and lordmatt were joking, but you seemed to be dead serious and oblivious to the joke. Hence tombom asking if you were serious.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

tombom wrote:You said that you didn't think the guy who said to
1) Take a post-it
2) Write the commands
3) Stuck it on your screen
4) Done !
had "actually made one" in response to someone clearly being sarcastic.
I wasn't being sarcastic. I really would like the post-it note making widget to be uploaded to UF. I'd also like a widget that does my medical school applications for me so I have more time to play spring. :P
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

locked.
Locked

Return to “Lua Scripts”