Skip to content

Commit

Permalink
Fix positioning of gui elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbodingAngel committed Feb 18, 2017
1 parent df0ec5c commit cfd2f00
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LuaUI/Widgets_Evo/gui_commands_info.lua
Expand Up @@ -171,7 +171,7 @@ function DrawButton()
{v = {1, 0, 0}},
}
glShape(GL_LINE_STRIP, vertices)
glText("Commands", textMargin, textMargin, textSize, "no")
glText("[ Commands ]", textMargin, textMargin, textSize, "no")
end


Expand Down
2 changes: 1 addition & 1 deletion LuaUI/Widgets_Evo/gui_howtoplay_info.lua
Expand Up @@ -172,7 +172,7 @@ function DrawButton()
{v = {1, 0, 0}},
}
glShape(GL_LINE_STRIP, vertices)
glText("How to Play", textMargin, textMargin, textSize, "no")
glText("[ How to Play ]", textMargin, textMargin, textSize, "no")
end


Expand Down
2 changes: 1 addition & 1 deletion LuaUI/Widgets_Evo/gui_keybind_info.lua
Expand Up @@ -162,7 +162,7 @@ function DrawButton()
{v = {1, 0, 0}},
}
glShape(GL_LINE_STRIP, vertices)
glText("Keybinds", textMargin, textMargin, textSize, "no")
glText("[ Keybinds ]", textMargin, textMargin, textSize, "no")
end

-- keybind info
Expand Down
4 changes: 2 additions & 2 deletions LuaUI/Widgets_Evo/gui_options.lua
Expand Up @@ -103,7 +103,7 @@ local textSize = 0.75
local textMargin = 0.25
local lineWidth = 0.0625

local posX = 0.15
local posX = 0.1625
local posY = 0
local showOnceMore = false -- used because of GUI shader delay
local buttonGL
Expand Down Expand Up @@ -184,7 +184,7 @@ function DrawButton()
{v = {1, 0, 0}},
}
glShape(GL_LINE_STRIP, vertices)
glText("Options", textMargin, textMargin, textSize, "no")
glText("[ Options ]", textMargin, textMargin, textSize, "no")
end

function lines(str)
Expand Down
4 changes: 2 additions & 2 deletions LuaUI/Widgets_Evo/gui_resourceBar.lua
Expand Up @@ -58,8 +58,8 @@ local vsx, vsy = gl.GetViewSizes()
local widgetScale = 1 -- gets auto changed anyway
local bgmargin = 12
local bgmargin2 = 6
local posx, posy = vsx - width, vsy - height
local tweakStartX, tweakStartY = 0, 0
local posx, posy = vsx - width * 1.59, vsy - height
local tweakStartX, tweakStartY = vsx - width * 1.59, vsy - height

local modoptMincome = Spring.GetModOptions().mincome

Expand Down

0 comments on commit cfd2f00

Please sign in to comment.