Skip to content

Commit bf75348

Browse files
committed
update control to display hash when on beta branch
1 parent d6d67ab commit bf75348

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
@@ -208,10 +208,16 @@ function main:Init()
208208
self.controls.forkLabel.label = function()
209209
return "^8PoB Community Fork"
210210
end
211-
self.controls.versionLabel = new("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 148, -2, 0, 16, "")
211+
self.controls.versionLabel = new("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 148, launch.versionBranch == "beta" and -12 or -2, 0, 16, "")
212212
self.controls.versionLabel.label = function()
213213
return "^8Version: "..launch.versionNumber..(launch.versionBranch == "dev" and " (Dev)" or launch.versionBranch == "beta" and " (Beta)" or "")
214214
end
215+
if launch.versionBranch == "beta" then
216+
self.controls.versionHash = new("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 148, 3, 0, 16, "")
217+
self.controls.versionHash.label = function()
218+
return "^8Rev/Hash: "..launch.versionCommitHashShort
219+
end
220+
end
215221
self.controls.devMode = new("LabelControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 0, -26, 0, 20, colorCodes.NEGATIVE.."Dev Mode")
216222
self.controls.devMode.shown = function()
217223
return launch.devMode

0 commit comments

Comments
 (0)