Trying to understand the Leadwerks GUI.
The edge should be that way? I would expect it to be with the corners a little rounded.
This is what I have written.
local gui = nil
local base = nil
local context = nil
function Script:Start()
hudPlayer = Texture:Load("Hud/PawnHud.tex")
hudSad = Texture:Load("Hud/Sad.tex")
font = Font:Load("Fonts/space age.ttf", 12)
context = Context:GetCurrent()
context:SetFont(font)
gui = GUI:Create(context)
base = gui:GetBase()
panel = Widget:Panel(gui:GetBase():GetClientSize().x/2-150,gui:GetBase():GetClientSize().y/2+150,300,100,gui:GetBase())
panel:SetAlignment(0,0,0,0)
panel:SetFloat("radius",30)
panel:SetBool("border",true)
Widget:Label("Do you want to",panel:GetClientSize().x/2-100,20,300,20,panel)
Widget:Label("try again?",panel:GetClientSize().x/2-65,40,300,200,panel)
btnYes = Widget:Button("OK",panel:GetClientSize().x/2-2-110,panel:GetClientSize().y-26-4,100,26,panel)
btnNo = Widget:Button("Cancel",panel:GetClientSize().x/2+18,panel:GetClientSize().y-26-4,100,26,panel)
btnYes:SetStyle(BUTTON_OK)
btnNo:SetStyle(BUTTON_CANCEL)
gui:Hide()
end