Created
October 23, 2018 23:38
-
-
Save CapsAdmin/a6aafd4ca3243baab13f35a239a6426d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g("frame") | |
Size = Vec2(250, 140) | |
Title = "Confirm Save As" | |
SetupLayout("LayoutChildren", "SizeToChildrenHeight", "SizeToChildrenWidth") | |
local frame = self | |
g("base") | |
Style = "frame" | |
SetupLayout("MoveUp", "FillX", "SizeToChildrenHeight") | |
g("rectangle") | |
SetupLayout("SizeToChildren", "CenterSimple") | |
g("image") | |
Texture = render.CreateTextureFromPath("https://cdn1.iconfinder.com/data/icons/CrystalClear/32x32/actions/messagebox_warning.png") | |
Size = Texture:GetSize() | |
SetupLayout("MoveLeft", "CenterYSimple") | |
g() | |
g("text") | |
Padding = Rect() + 4 | |
Text = "temp.txt already exist.\nDo you want to replace it?" | |
SetupLayout("MoveLeft") | |
g() | |
g() | |
g() | |
g("rectangle") | |
SetupLayout("MoveUp", "FillX", "SizeToChildrenHeight") | |
local function button(str) | |
g("text_button") | |
Padding = Rect() + 4 | |
Text = str | |
Size = Vec2(90, 25) | |
label:SetupLayout("CenterSimple") | |
SetupLayout("MoveRight") | |
function OnRelease() | |
--self.Parent.Parent:Remove() | |
frame:Remove() | |
print(self, frame) | |
end | |
g() | |
end | |
button("Yes") | |
button("No") | |
g() | |
g() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment