View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003330 | Spring engine | Lua | public | 2012-11-13 16:46 | 2014-09-13 13:26 |
| Reporter | Assigned To | jK | |||
| Priority | low | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Product Version | 91.0 | ||||
| Summary | 0003330: CMDTYPE.ICON_FRONT command does not draw "green wall" part of cursor | ||||
| Description | http://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 Information | local 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. | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
"params = { 'do it!'}" is wrong, see: https://github.com/spring/spring/blob/develop/rts/Game/UI/GuiHandler.cpp#L3348 |