Skip to content

Commit 911aded

Browse files
committed
update control to display hash when on beta branch
1 parent 08086b2 commit 911aded

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Modules/Main.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,16 @@ function main:Init()
209209
self.controls.forkLabel.label = function()
210210
return "^8PoB Community Fork"
211211
end
212-
self.controls.versionLabel = new("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 148, -2, 0, 16, "")
212+
self.controls.versionLabel = new("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 148, launch.versionBranch == "beta" and -12 or -2, 0, 16, "")
213213
self.controls.versionLabel.label = function()
214214
return "^8Version: "..launch.versionNumber..(launch.versionBranch == "dev" and " (Dev)" or launch.versionBranch == "beta" and " (Beta)" or "")
215215
end
216+
if launch.versionBranch == "beta" then
217+
self.controls.versionHash = new("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 148, 3, 0, 16, "")
218+
self.controls.versionHash.label = function()
219+
return "^8Rev/Hash: "..launch.versionCommitHashShort
220+
end
221+
end
216222
self.controls.devMode = new("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 0, -26, 0, 20, colorCodes.NEGATIVE.."Dev Mode")
217223
self.controls.devMode.shown = function()
218224
return launch.devMode

0 commit comments

Comments
 (0)