2025-07-20 16:38 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003330Spring engineLuapublic2014-09-13 13:26
Reporteruser744 
Assigned TojK 
PrioritylowSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
Product Version91.0 
Target VersionFixed in Version 
Summary0003330: CMDTYPE.ICON_FRONT command does not draw "green wall" part of cursor
Descriptionhttp://www.abload.de/img/blafbplq.jpg

(1) shows the arrow+green line/wall cursor you get by selecting unit(s) and dragging a line with right mousebutton.

(2) Has a custom command added to the units, type = CMDTYPE.ICON_FRONT
Now it only draws the arrow but not the wall/line.
I guess it is supposed to a line, too.
Additional Informationlocal goMiningCmd = {
      id = CMD_GO_MINING,
      --name = " Mine\nMinerals!", --text on the button
      action = "goMining",
      type = CMDTYPE.ICON_FRONT, --CMDTYPE.ICON_MODE, CMDTYPE.NUMBER
      --texture = "&.9x.9&unitpics/sigterm.png&bitmaps/frame.tga",
      texture = "unitpics/mining.png&", --& = larger icon due to no frame
      tooltip = "Mine resources! Hotkey: m",
      params = { 'do it!'}
}

...

Spring.InsertUnitCmdDesc(unitID, goMiningCmd)

was just testing what the different CMD types do.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0013639

jK (developer)

"params = { 'do it!'}" is wrong, see:

https://github.com/spring/spring/blob/develop/rts/Game/UI/GuiHandler.cpp#L3348
+Notes

-Issue History
Date Modified Username Field Change
2012-11-13 16:46 user744 New Issue
2014-09-13 13:26 jK Note Added: 0013639
2014-09-13 13:26 jK Status new => resolved
2014-09-13 13:26 jK Resolution open => no change required
2014-09-13 13:26 jK Assigned To => jK
+Issue History