Tweaked Main control size/position
This commit is contained in:
@@ -118,23 +118,23 @@ function main:Init()
|
||||
|
||||
self.sharedItems = { }
|
||||
|
||||
self.anchorUpdate = common.New("Control", nil, 2, 0, 0, 0)
|
||||
self.anchorUpdate.y = function()
|
||||
self.anchorMain = common.New("Control", nil, 4, 0, 0, 0)
|
||||
self.anchorMain.y = function()
|
||||
return self.screenH - 4
|
||||
end
|
||||
self.controls.options = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 0, 0, 70, 20, "Options", function()
|
||||
self.controls.options = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 0, 0, 70, 20, "Options", function()
|
||||
self:OpenOptionsPopup()
|
||||
end)
|
||||
self.controls.about = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 230, 0, 70, 20, "About", function()
|
||||
self.controls.about = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 228, 0, 70, 20, "About", function()
|
||||
self:OpenAboutPopup()
|
||||
end)
|
||||
self.controls.applyUpdate = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 0, -28, 110, 20, "^x50E050Update Ready", function()
|
||||
self.controls.applyUpdate = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 0, -24, 130, 20, "^x50E050Update Ready", function()
|
||||
self:OpenUpdatePopup()
|
||||
end)
|
||||
self.controls.applyUpdate.shown = function()
|
||||
return launch.updateAvailable and launch.updateAvailable ~= "none"
|
||||
end
|
||||
self.controls.checkUpdate = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 0, -28, 120, 18, "", function()
|
||||
self.controls.checkUpdate = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 0, -24, 130, 20, "", function()
|
||||
launch:CheckForUpdate()
|
||||
end)
|
||||
self.controls.checkUpdate.shown = function()
|
||||
@@ -146,15 +146,15 @@ function main:Init()
|
||||
self.controls.checkUpdate.enabled = function()
|
||||
return not launch.updateCheckRunning
|
||||
end
|
||||
self.controls.versionLabel = common.New("LabelControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 124, -28, 0, 14, "")
|
||||
self.controls.versionLabel = common.New("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 134, -27, 0, 14, "")
|
||||
self.controls.versionLabel.label = function()
|
||||
return "^8Version: "..launch.versionNumber..(launch.versionBranch == "dev" and " (Dev)" or "")
|
||||
end
|
||||
self.controls.devMode = common.New("LabelControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 0, -28, 0, 18, "^1Dev Mode")
|
||||
self.controls.devMode = common.New("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 0, -26, 0, 20, "^1Dev Mode")
|
||||
self.controls.devMode.shown = function()
|
||||
return launch.devMode
|
||||
end
|
||||
self.controls.dismissToast = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 0, function() return -self.mainBarHeight + self.toastHeight end, 80, 20, "Dismiss", function()
|
||||
self.controls.dismissToast = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 0, function() return -self.mainBarHeight + self.toastHeight end, 80, 20, "Dismiss", function()
|
||||
self.toastMode = "HIDING"
|
||||
self.toastStart = GetTime()
|
||||
end)
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<File sha1="1a3f16372f27e7b94d373e6c61affb4ebe478b13" name="Modules/Common.lua" part="program"/>
|
||||
<File sha1="b87a64e3b2d14246dcc2e19fa65bb44eed1428f8" name="Modules/Data.lua" part="program"/>
|
||||
<File sha1="d5d22f2fca12cd9148ec17016aa2741ee844a692" name="Modules/ItemTools.lua" part="program"/>
|
||||
<File sha1="0790c92233323739ceb0671fb2cc4df92f9af621" name="Modules/Main.lua" part="program"/>
|
||||
<File sha1="4b7669a8b8d57f4a81b25f5aa5abbf9d7e370269" name="Modules/Main.lua" part="program"/>
|
||||
<File sha1="6f572a9c9c5b6d85739f4c0cfda8386b4874af34" name="Modules/ModParser.lua" part="program"/>
|
||||
<File sha1="08bfd94f291b10dbdc75c94d7f2928c8bbd1a1d7" name="Modules/ModTools.lua" part="program"/>
|
||||
<File sha1="c345cdcf374d271411aa424ab150c0edbb5a362d" name="Assets/game_ui_small.png" part="program"/>
|
||||
|
||||
Reference in New Issue
Block a user