diff --git a/Mt.rbxlx b/Mt.rbxlx index 2720afc..70a26d5 100644 --- a/Mt.rbxlx +++ b/Mt.rbxlx @@ -82,27 +82,27 @@ - -38.7727661 - 21.1391563 - -101.471115 - -0.559310853 - -0.476656705 - 0.678210735 + -195.025513 + 28.0680141 + -129.069443 + -0.955332339 + 0.040107429 + 0.292799413 -0 - 0.818148494 - 0.575007021 - -0.828958035 - 0.321607679 - -0.457599312 + 0.990748405 + -0.135711923 + -0.295533568 + -0.129649982 + -0.946494043 null 0 70 0 - -40.1291885 - 19.9891415 - -100.555916 + -195.611115 + 28.3394394 + -127.176445 1 0 0 @@ -603,7 +603,7 @@ local MWindowManager = require(repstrg.Mt.MtCore.MWindowManager) game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false) -local screen = MWindowManager() +local screen = MWindowManager.Init() print(screen) function putStuffOnWindow(window,stuff:{GuiObject}) @@ -612,18 +612,18 @@ function putStuffOnWindow(window,stuff:{GuiObject}) end end -local window = MWindow:Init(screen) +local window = MWindow.Init(screen) window:SetName("MainWindow") window:SetTitle("window") window.Frame.Position = UDim2.fromOffset(0,0) putStuffOnWindow(window,script.window:GetChildren()) -local dialog = MWindow:Init(screen) +local dialog = MWindow.Init(screen) dialog:SetName("Dialog") dialog:SetTitle("dialog") putStuffOnWindow(dialog,script.dialog:GetChildren()) -local page = MWindow:Init(screen) +local page = MWindow.Init(screen) page:SetName("Page") page:SetTitle("page") putStuffOnWindow(page,script.page:GetChildren())]]> @@ -1033,6 +1033,28 @@ putStuffOnWindow(page,script.page:GetChildren())]]> + + + + false + + MtSpinBox + 0 + {5FE7DA26-F0DC-4D80-9006-D3D60316B7D6} + + -1 + + 084de78fdf1df23102e96da600074765 + + @@ -1070,7 +1092,7 @@ putStuffOnWindow(page,script.page:GetChildren())]]> true 0 - false + true true extra true @@ -1085,494 +1107,6 @@ putStuffOnWindow(page,script.page:GetChildren())]]> 5b19d14ef55ae6bc0249fc2c00162b57 1 - - - false - - 0 - 0 - - - true - 0 - - 1 - 1 - 1 - - 0 - - 0.105882362 - 0.164705887 - 0.207843155 - - 0 - 1 - false - false - 0 - Frame - null - null - null - null - - 0 - 0 - 0 - 0 - - null - 0 - false - 0 - 0 - 0 - 0 - false - null - 0 - - 0 - 438 - 0 - 268 - - 0 - -1 - 0 - - 079fd07efd1f4a0a028fc3eb0079727f - true - 1 - - - - - false - - 0 - 0 - - - true - 0 - - 1 - 1 - 1 - - 0 - - 0.105882362 - 0.164705887 - 0.207843155 - - 0 - 1 - false - false - 0 - Frame - null - null - null - null - - 0.425619841 - 0 - 0 - 0 - - null - 0 - false - 0 - 0 - 0 - 0 - false - null - 0 - - 0 - 438 - 0 - 268 - - 0 - -1 - 0 - - 079fd07efd1f4a0a028fc3eb007b7c46 - true - 1 - - - - - false - - 0 - 0 - - - true - 0 - - 1 - 1 - 1 - - 0 - - 0.105882362 - 0.164705887 - 0.207843155 - - 0 - 1 - false - false - 0 - Frame - null - null - null - null - - 0 - 0 - 0.537132978 - 0 - - null - 0 - false - 0 - 0 - 0 - 0 - false - null - 0 - - 0 - 438 - 0 - 268 - - 0 - -1 - 0 - - 079fd07efd1f4a0a028fc3eb007b828d - true - 1 - - - - - true - - 0 - 0 - - - true - 0 - - 1 - 1 - 1 - - 0 - - 0.105882362 - 0.164705887 - 0.207843155 - - 0 - 1 - false - false - false - 3 - - rbxasset://fonts/families/SourceSansPro.json - 400 - - rbxasset://fonts/SourceSansPro-Regular.ttf - - 0 - 1 - -1 - false - input - null - null - null - null - - 0.699999988 - 0.699999988 - 0.699999988 - - - - 0.496492594 - 0 - 0.497206688 - 0 - - false - null - 0 - true - 0 - 0 - 0 - 0 - false - null - 0 - true - - 0 - 165 - 0 - 50 - - 0 - -1 - - 0 - - 0 - 0 - 0 - - true - true - 14 - - 0 - 0 - 0 - - 1 - 0 - 0 - true - 0 - 1 - 56aefadec790aa6202e855180002d40a - true - 1 - - - - true - - 0 - 0 - - - true - true - 0 - - 0.670588255 - 0.670588255 - 0.670588255 - - 0 - - 0.105882362 - 0.164705887 - 0.207843155 - - 0 - 0 - false - false - - rbxasset://textures/ui/Backpack_Open@2x.png - - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - 0 - false - up - null - null - null - null - - 0.800000012 - 0 - 0 - 0 - - - 0 - null - 0 - 3 - true - false - 0 - 0 - 0 - 0 - false - null - 0 - - 0.200000003 - 0 - 0.5 - 0 - - 0 - - - 0 - 0 - - - 0 - 0 - - - 1 - -1 - 0 - - - 1 - 0 - 1 - 0 - - 56aefadec790aa6202e855180002d408 - true - 1 - - - - - true - - 0 - 0 - - - true - true - 0 - - 0.670588255 - 0.670588255 - 0.670588255 - - 0 - - 0.105882362 - 0.164705887 - 0.207843155 - - 0 - 0 - false - false - - rbxasset://textures/ui/Backpack_Close@2x.png - - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - 0 - false - down - null - null - null - null - - 0.800000012 - 0 - 0.5 - 0 - - - 0 - null - 0 - 3 - true - false - 0 - 0 - 0 - 0 - false - null - 0 - - 0.200000003 - 0 - 0.5 - 0 - - 0 - - - 0 - 0 - - - 0 - 0 - - - 1 - -1 - 0 - - - 1 - 0 - 1 - 0 - - 56aefadec790aa6202e855180002d409 - true - 1 - - - @@ -1745,7 +1279,7 @@ putStuffOnWindow(page,script.page:GetChildren())]]> - false + true MtObjectTest 0 @@ -1869,8 +1403,8 @@ local MWindow = { MWindow = setmetatable(MWindow, MWidget) rawset(MWindow, "__index", MWindow) -MWindow.Init = function(self,screen) - local self = setmetatable(MWidget.Init(self,screen), MWindow) +MWindow.Init = function(screen) + local self = setmetatable(MWidget.Init(screen), MWindow) self.Interacted=Instance.new("BindableEvent") self.Resizing = Instance.new("BindableEvent") @@ -3721,8 +3255,8 @@ local MWidget = { MWidget = setmetatable(MWidget, MObject) rawset(MWidget, "__index", MWidget) -MWidget.Init = function(self,parent) - local self = MObject.Init(self,parent) +MWidget.Init = function(parent) + local self = setmetatable(MObject.Init(parent), MWidget) self.Frame = Instance.new("Frame") self.Frame.Name = self.Name @@ -3941,6 +3475,439 @@ return MWidget]]> 4b78783951982c7702dac31d001c27d9 + + + + + MSpinBox + {C66A5253-EE5E-430B-969B-9F8BE66CCF97} + max then + return max + else + return value + end +end + +function MSpinBox:SetValue(value: number) + rawset(self, "Value", self:GetLimitedValue(value)) + self.Input.Text = tostring(value) +end + +function MSpinBox:GetValue(): number + return self.Value +end + +function MSpinBox:IncValue(inc: number) + self:SetValue(self:GetValue() + inc) +end + +return MSpinBox]]> + -1 + + 084de78fdf1df23102e96da6000741cc + + + + false + + 0 + 0 + + + true + 0 + + 1 + 1 + 1 + + 0 + + 0.105882362 + 0.164705887 + 0.207843155 + + 0 + 1 + true + false + 0 + spinbox + null + null + null + null + + 0 + 0 + 0 + 0 + + null + 0 + false + 0 + 0 + 0 + 0 + false + null + 0 + + 0 + 155 + 0 + 55 + + 0 + -1 + 0 + + 084de78fdf1df23102e96da6000501ef + true + 1 + + + + true + + 0 + 0 + + + true + 0 + + 1 + 1 + 1 + + 0 + + 0.105882362 + 0.164705887 + 0.207843155 + + 0 + 1 + false + false + false + 3 + + rbxasset://fonts/families/SourceSansPro.json + 400 + + rbxasset://fonts/SourceSansPro-Regular.ttf + + 0 + 1 + -1 + false + input + null + null + null + null + + 0.699999988 + 0.699999988 + 0.699999988 + + + + 0 + 0 + 0 + 0 + + false + null + 0 + true + 0 + 0 + 0 + 0 + false + null + 0 + true + + 0.800000012 + 0 + 1 + 0 + + 0 + -1 + + 0 + + 0 + 0 + 0 + + true + true + 14 + + 0 + 0 + 0 + + 1 + 0 + 0 + true + 0 + 1 + 56aefadec790aa6202e855180002d40a + true + 1 + + + + + true + + 0 + 0 + + + true + true + 0 + + 0.670588255 + 0.670588255 + 0.670588255 + + 0 + + 0.105882362 + 0.164705887 + 0.207843155 + + 0 + 0 + false + false + + rbxasset://textures/ui/Backpack_Close@2x.png + + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + 0 + false + down + null + null + null + null + + 0.800000012 + 0 + 0.5 + 0 + + + 0 + null + 0 + 3 + true + false + 0 + 0 + 0 + 0 + false + null + 0 + + 0.200000003 + 0 + 0.5 + 0 + + 0 + + + 0 + 0 + + + 0 + 0 + + + 1 + -1 + 0 + + + 1 + 0 + 1 + 0 + + 56aefadec790aa6202e855180002d409 + true + 1 + + + + + true + + 0 + 0 + + + true + true + 0 + + 0.670588255 + 0.670588255 + 0.670588255 + + 0 + + 0.105882362 + 0.164705887 + 0.207843155 + + 0 + 0 + false + false + + rbxasset://textures/ui/Backpack_Open@2x.png + + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + 0 + false + up + null + null + null + null + + 0.800000012 + 0 + 0 + 0 + + + 0 + null + 0 + 3 + true + false + 0 + 0 + 0 + 0 + false + null + 0 + + 0.200000003 + 0 + 0.5 + 0 + + 0 + + + 0 + 0 + + + 0 + 0 + + + 1 + -1 + 0 + + + 1 + 0 + 1 + 0 + + 56aefadec790aa6202e855180002d408 + true + 1 + + + + @@ -4410,8 +4377,8 @@ local MWindowManager = { MWindowManager = setmetatable(MWindowManager, MScreen) rawset(MWindowManager,"__index", MWindowManager) -MWindowManager.Init = function(self,plr,parent,_obj) - local self = MScreen.Init(self,plr,parent,_obj) +MWindowManager.Init = function(plr,parent) + local self = setmetatable(MScreen.Init(plr,parent), MWindowManager) self.WindowMoved = Instance.new("BindableEvent") self.WindowResized = Instance.new("BindableEvent") @@ -4705,8 +4672,6 @@ MWindowManager.AddWidget = function(self,widget) self:RefreshFocus() end -MWindowManager = MScreen:Init(nil,{},MWindowManager) - return MWindowManager]]> -1