clicking on arrows in editor moves the gem
This commit is contained in:
parent
4d732c263c
commit
1db2b95300
1 changed files with 4 additions and 5 deletions
|
@ -382,10 +382,7 @@ local void DrawTileIcons(void)
|
|||
*/
|
||||
local void DrawUnitIcons(void)
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
int i;
|
||||
int j;
|
||||
int x, y, i, j, percent;
|
||||
char buf[256];
|
||||
Icon *icon;
|
||||
|
||||
|
@ -547,7 +544,9 @@ local void DrawUnitIcons(void)
|
|||
} else {
|
||||
VideoDraw(MenuButtonGfx.Sprite, MBUTTON_RIGHT_ARROW, x + j - 20, y);
|
||||
}
|
||||
i = (50 * (j - 54)) / 100;
|
||||
|
||||
percent = UnitIndex * 100 / MaxUnitIndex;
|
||||
i = (percent * (j - 54)) / 100;
|
||||
VideoDraw(MenuButtonGfx.Sprite, MBUTTON_S_KNOB, x + 18 + i, y + 1);
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue