Commands text useless, please remove it

Commands text useless, please remove it

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Commands text useless, please remove it

Post by TradeMark »

Image

it comes on my minimap, its annoying, and useless text, like anyone didnt know those buttons under that text were commands?

yeah i could use lua/something and hide it and so on, but what about the new/lazy users who just want to play and not touch to any files?

Can that text be removed at new version? pls?

also, it would be super cool to be possible to move those commands buttons in game, and then it would remember it, so it would be much easier to decide where you want them to be.
User avatar
kiki
Posts: 859
Joined: 05 Nov 2007, 03:06

Re: Commands text useless, please remove it

Post by kiki »

WIdget.
User avatar
Pendrokar
Posts: 658
Joined: 30 May 2007, 10:45

Re: Commands text useless, please remove it

Post by Pendrokar »

kiki wrote:WIdget.
He hates lua!
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Commands text useless, please remove it

Post by Auswaschbar »

Even things which are easy to customize should have reasonable defaults imho, so +1
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: Commands text useless, please remove it

Post by ZellSF »

+1

Though IceUI's minimap is above the text so I don't really care much. The purpose of it is to shown if you've chosen to have the build list or the commands first though, so it has a purpose, but if you change the ordering on that you probably know anyway.
Lupus
Posts: 37
Joined: 18 Jan 2008, 22:23

Re: Commands text useless, please remove it

Post by Lupus »

Anyway, how to get rid of the "Commands" text using widgets or anything?
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Commands text useless, please remove it

Post by TradeMark »

yeah, tell me too.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Commands text useless, please remove it

Post by Kloot »

The "Commands" string is printed by LuaUI, see
LuaUI/layout.lua (search for 'menuName') if you
want to get rid of it.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Commands text useless, please remove it

Post by TradeMark »

Thank you.

Could you also tell how to change minimap default position/size?
User avatar
kiki
Posts: 859
Joined: 05 Nov 2007, 03:06

Re: Commands text useless, please remove it

Post by kiki »

In ice ui, which is what I use, just look for the minimap.lua. I guess without iceui its just ctrlpanel.txt
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Commands text useless, please remove it

Post by TradeMark »

what command i put into ctrlpanel.txt to change the minimap position/size?
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: Commands text useless, please remove it

Post by ZellSF »

You can't, I think. Not the default minimap.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Commands text useless, please remove it

Post by TradeMark »

someone make a patch then :(
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Commands text useless, please remove it

Post by Neddie »

You can change the map ingame. I just edit the layout and change "COMMANDS" to "" to deal with the annoying words.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Re: Commands text useless, please remove it

Post by trepan »

Loot at some the widgets with 'minimap' in their names.

P.S. It can also be setup using a config var (the one with
the really obvious name)
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Commands text useless, please remove it

Post by imbaczek »

trepan wrote:Loot at some the widgets
too much MUMORPUGERS! <wink>
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Commands text useless, please remove it

Post by TradeMark »

that minimap widget sucked because i couldnt move it ingame...
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Re: Commands text useless, please remove it

Post by trepan »

The RelativeMinimap widget shows that you can
adjust the minimap in-game using lua. The config
var name is MinimapGeometry. The original minimap
widget was intended to show devs that you could
grab control of the minimap, not to allow you to
move it around (the "for devs" part elude you?)
Lupus
Posts: 37
Joined: 18 Jan 2008, 22:23

Re: Commands text useless, please remove it

Post by Lupus »

To get rid of the "COMMANDS" and "BUILD ORDERS" text, open the layout.lua file (/LuaUI/layout.lua in your spring directory) and find the following code:

Code: Select all

local cmdsFirst = (commands[1].id >= 0)
if (cmdsFirst) then
    menuName =   RedStr .. 'Commands'
  else
    menuName = GreenStr .. 'Build Orders'
  end
Then comment (or delete) all the lines except the first one. It should be for example:

Code: Select all

local cmdsFirst = (commands[1].id >= 0)
--  if (cmdsFirst) then
--    menuName =   RedStr .. 'Commands'
--  else
--    menuName = GreenStr .. 'Build Orders'
--  end
Post Reply

Return to “Feature Requests”