Request: Change location of FPS and Clock Widget

Request: Change location of FPS and Clock Widget

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

Moderator: Moderators

Post Reply
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

Request: Change location of FPS and Clock Widget

Post by MetalSkin »

G'day all,

Would it be possible to change the location of the FPS and Clock widget? I find that the ping on peoples names tends to mask the FPS and Clock widget.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Not sure, you should be able to manually edit the coordinates, but it might be better just to hit "/info" into the console and hide the player list.
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

Post by MetalSkin »

neddiedrow wrote:Not sure, you should be able to manually edit the coordinates, but it might be better just to hit "/info" into the console and hide the player list.
Ahh, but the problem is I like the player list. It's true that I use it the most when specin, but I also do use it a fair bit when playing (monitor my ping, check if any team mates have dropped, check if whoever just typed in public is in my team or op team, etc).

It would be nice to be able to change the font size of the player list, that would alleviate the problem quite a bit.

Actually while I think of it, allowing the option to choose the 11th plus player would be nice too! but that's a separate issue, which is apparently possible but I can't figure it out.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

Ctrl-F11 activates tweak mode and you can move stuff around if it supports it. I think FPS and Clock do. It saves the position.

To get to 1<number> players while speccing, use Ctrl-<number>.
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

Post by MetalSkin »

tombom wrote:Ctrl-F11 activates tweak mode and you can move stuff around if it supports it. I think FPS and Clock do. It saves the position.
Just tried it but couldn't get anything to move... get a box at the bottom left that allows me to resize, change the order and move, but it seems to have no effect. moving the mouse over the fps and the clock doesn't highlight a box that you can move... is there any doco on the tweak mode that I can look at?

I'll try that specing option when i get a chance... no major games on now :(

and thanks for the info.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

MetalSkin wrote:
tombom wrote:Ctrl-F11 activates tweak mode and you can move stuff around if it supports it. I think FPS and Clock do. It saves the position.
Just tried it but couldn't get anything to move... get a box at the bottom left that allows me to resize, change the order and move, but it seems to have no effect. moving the mouse over the fps and the clock doesn't highlight a box that you can move... is there any doco on the tweak mode that I can look at?

I'll try that specing option when i get a chance... no major games on now :(

and thanks for the info.
Sorry you're right - FPS/Clock don't seem to work in tweak mode, although I thought they used to :( IceUI works though.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

Moving those widgets is a pain because you can't do it in tweak mode. Instead you need to open LuaUI/Config/widget_data.lua and adjust x and y posf. The numbers are fractions of the screen width and height, and go 0 - 1 from left to right and 1 - 0 from top to bottom. I would show how my GUI is set up, however I can't until next spring version because I can't take screenshots of the viewport when the minimap is on the left.
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

Post by MetalSkin »

tombom wrote:IceUI works though.
No worries, prob is i dont use iceUI, not overly fond of it... :) Thanks for the confirmation though.
LordMatt wrote:Moving those widgets is a pain because you can't do it in tweak mode. Instead you need to open LuaUI/Config/widget_data.lua and adjust x and y posf. The numbers are fractions of the screen width and height, and go 0 - 1 from left to right and 1 - 0 from top to bottom. I would show how my GUI is set up, however I can't until next spring version because I can't take screenshots of the viewport when the minimap is on the left.
No worries, i'll look at that... is it possible to post your widget_data.lua so I can use and see what your screen looks like? maybe we could have a post of peoples popular widget_data.lua's with a screen map :)

Hmm it only has Build Bar, Clock, Eyes, FPS and IdleBuildersNEW... I thought it would have had more?

Any idea what IdleBuildersNEW is? The others are obvious to me.

:edit:

I presume that -- is to declare the rest of the line as a comment and to be ignored? sorta like // for c++/java?
User avatar
stilicho
Posts: 46
Joined: 21 Mar 2007, 02:49

Post by stilicho »

I have the clock in the top right of my screen, just below the resource bars. Try this out in your widget_data.lua:

Clock = {
font = "LuaUI/Fonts/FreeSansBold_14",
format = "orn",
sizef = 0.014999999664724,
xposf = 0.99000000953674,
yposf = 0.94999998807907,
color = {
[1] = 1,
[2] = 1,
[3] = 1,
},

IdleBuildersNEW is a widget that displays idle construction units and factories with small build queues.

And you're right, -- declares a comment in LUA.
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

Post by MetalSkin »

Thanks Stilicho, I'll try that out tonight (currently it's 8:00am for me). o_O
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

I would post it but it wouldn't make sense to you without a screenshot showing everything layed out, which I unfortunately can't provide. I use dual screens, IceUI, the idle cons widget, and a heavily modified ctrlpanel.txt for a custom GUI.
Post Reply

Return to “Lua Scripts”