Jump to content

Search the Community

Showing results for tags 'luascript'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Blogs

  • Development Blog
  • Canardian's Blog
  • Tyler's Blog
  • macklebee's Blog
  • B-Byrnes' Blog
  • Marleys Ghost's Blog
  • omid3098's Blog
  • Richardsimpo123456's Blog
  • DJDD's Blog
  • Rick's Blog
  • --
  • Economically Disadvantaged
  • klepto2's Blog
  • Old Blog
  • Chris Paulson's Blog
  • Davaris' Blog
  • nil
  • Rekindled Phoenix's Blog
  • Flexman's Blog
  • Kattemaksu Online
  • Niosop's Blog
  • 1299 RTS Game Project
  • Blitzbat's Blog
  • gordonramp's Blog
  • Andy Gilbert's Blog
  • Marcus' Blog
  • JornAggror Blog
  • diedir's Blog
  • wayneg's Blog
  • Masterxilo's Blog
  • peubuy's blog
  • OD Arts -Leadwerks Blog
  • Leadwerks News
  • Dave Lee's Blog
  • The progression......
  • The Progression
  • Pancake's Blog
  • Test Blog
  • Pureยณd's Blog
  • dreamhead Blog
  • RVL's Blog
  • DB's Blog
  • Toxin Games Development Blog
  • CombatHelo Blog (RSS Import)
  • Foolish's Blog
  • ZioRed's Corner
  • BLaBZ Blog
  • Toxin Games Twitter
  • Shard - Third Initiative
  • Shard's Blog
  • Soamp's Blog
  • Soamp's Blog
  • Laurens' Blog
  • JT`s warehouse district
  • Kennar's Blog
  • KiteFuchs' Blog
  • KiteFuchs' Blog
  • Eagle's Blog
  • Rachel's Dev-Blog
  • zaphos' Blog
  • please delete this blog
  • Afke's Blog
  • Richard Simpson
  • knowledgegranted's Blog
  • EdzUp(GD)'s Blog
  • aGameLife's Kelasel MMORPG Blog
  • Beyond Civilization Blog Ext
  • tournamentdan's Blog
  • Beyond Civilization Blog
  • smashthewindow
  • AnniXa's Blog
  • AnniXa's Blog
  • Elemental Development
  • Aria's Blog
  • Strogg76's Blog
  • Clackdor's Blog
  • Leadwerks Project Status
  • simpleprogrammer's Blog
  • Pathfinding in LE.2.x
  • Naughty Alien's Blog
  • smashthewindow's Blog
  • Ali Salehi's Blog
  • Jardar's Blog
  • DigitalHax Blog
  • Chris Vossen's Development Blog
  • Scarlet Thread Studios' Blog
  • Kronos' Blog
  • Benton's Blog
  • Screen Size Utility
  • ChrisV's Blog
  • tjheldna's Blog
  • shadmar's Blog
  • 3D Masons, LLC
  • Andy Gilbert's Enviro Models
  • ParaToxic's Blog
  • NarkLord's Blog
  • ChrisMAN's Blog
  • ChrisMAN's Blog
  • CGMan's Blog
  • The Game
  • Chris Tutorials
  • Leadwerks 3 Experience
  • An Alien Saga
  • klepto2 & Leadwerks 3
  • Inside the mind of eternal insomniac
  • josk's Blog
  • xtreampb's Blog
  • Rendering puzzles
  • Shader Development in Leadwerks 3.1
  • 3D Coat : Column game making of
  • Einlander's Blog
  • Ginger George's Blog
  • I have a problem
  • Michael_J's Blog
  • nasamydifol's Blog
  • Digman's Blog
  • noesisGUI
  • Remaining Days
  • test_external_blog
  • SavageDogg38's Blog
  • Built from Ruins
  • The Hunt For Food Blog
  • Crazy Minnow Studio
  • CrazyMinnowStudio
  • Guppy's Blog
  • Evayr's Blog
  • Playing Online
  • DerRidda's Blog
  • Karl's Blog
  • whiterabbit's Blog
  • Tinyboss Games
  • abendkleider's Blog
  • sacguccireplica's Blog
  • Arena
  • Imchasinyou's Blog
  • EVE LBS Studio
  • xtom's Blog
  • Lua is better than you think.
  • mdgunn's Blog
  • Crime Closer
  • lxFirebal69xl's Blog
  • Pump-Action Captain
  • Igor's Blog
  • Dead Anyway
  • Lockdown, going forward.
  • Runenrise and more
  • reepblue's Blog
  • LUA Musings
  • severjack's Blog
  • mikeporter's Blog
  • miko93's Blog
  • Megalocerous' Blog
  • lxFirebal69xl's Blog
  • aiaf's Blog
  • Lostghbear's Blog
  • Wedmer's Blog
  • echo $BLOG_NAME > blog_title.tmpl
  • johnadam111's Blog
  • burgelkat's Blog
  • Charrua's Blog
  • peterpaul's Blog
  • joshmathews' Blog
  • Martin Kearl's Blog
  • Brutile's blog
  • tipforeveryone's Blog
  • Express Lab Games Blog
  • Glushchenko Blog
  • Blueapples' Blog
  • DooMAGE's Blog
  • Structura devblog
  • martyj's Blog
  • Dragonfreak's Blog
  • Brutile's Blog
  • assigmenthelp
  • Case Study Assignment Help
  • How to deal with bad grade ?
  • How to deal with bad grade ?
  • GameDev Blog
  • Marcousik's Creations Blog
  • devcjohnson's Blog
  • devcjohnson's Blog
  • THE WHAT? Blog
  • GUI Editor
  • Phodex Games Blog
  • GUI Tutorial
  • Dwarf Beard
  • The Seventh World
  • The Demurian Scribe
  • The Blog of Yue
  • Snowboarding Development Blog
  • Leadwerks VS Source 2
  • Work in Progress - Scifi PBR Media
  • [C++] First Player game start
  • Ocean: Rendering in Leadwerks 4
  • noob_shaders
  • Ultra App Kit (Advanced Custom Widgets)
  • Poking around
  • Slippy's Corner
  • UltraEngine - Experiences, add-ons and other Stuff
  • Blender tutorials
  • Game Ready Maps
  • Thirsty Panther
  • Ultimate Action Game Controller
  • SCP Dev Blog
  • The Seamless Finish: How Coalescing Agents Perfect Coatings and Paints Globally
  • Still sticking with Leadwerks? HERE'S YOUR FUTURE!

Forums

  • Leadwerks
    • General Discussion
    • Programming
    • Game Artwork
    • Showcase
    • Suggestion Box
    • Bug Reports
  • Addons

Categories

  • Streams and Events
  • Games
  • Work in Progress

Categories

  • Environments
  • Games
  • Heightmaps
  • Materials
    • Abstract
    • Asphalt
    • Brick
    • Concrete
    • Debris
    • Effects
    • Fabric
    • Ground
    • Marble
    • Metal
    • Organic
    • Plaster
    • Rock
    • Roof
    • Sand
    • SciFi
    • Snow
    • Surface Imperfections
    • Tile
    • Wood
  • Models
    • Animals and Creatures
    • Architecture
    • Characters
    • Food
    • Machinery
    • Plants and Vegetation
    • Props
    • Rocks
    • Vehicles
    • Tools
    • Weapons
  • Skyboxes
  • Sound
    • Music
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location

Found 1 result

  1. I am trying to create a calculator with lua as scriptengine. It displays the current version of the gui fine, but I am having problems with the accept loop at the end. At the moment I have only entered a little code for number 1 and 2. The problem is that the textbox shows the number 1 and 2 when I hover over the buttons and not when they are clicked. Also I do not have a proper way of closing the window. Any suggestions to how to improve this accept loop? The code is as follows: -- Get the displays local displays = GetDisplays() -- Create a window local window = CreateWindow("Calculator", 0, 0, 800, 660, displays[1], WINDOW_CENTER | WINDOW_TITLEBAR)-- | WINDOW_RESIZABLE) -- Create User Interface local ui = CreateInterface(window) --Create buttons local sz = window:ClientSize() local x = (sz.x - 120) / 2 local y = 50 local sep = 40 -- Create widget local panel = CreatePanel(50, 50, sz.x - 100, sz.y - 100, ui.background) panel:SetColor(0, 0, 0, 1) panel:SetLayout(1, 1, 1, 1) -- Create text field local textfield = CreateTextField(70, 10, 600, 30,ui.background); textfield:SetText("0"); textfield:SetFontScale(2); textfield:SetColor(0,0,0,1) -- Row 1 local buttonMC = CreateButton("MC", 30, 30, 70, 70, panel); local buttonMR = CreateButton("MR", 110, 30, 70, 70, panel); local buttonM_Plus = CreateButton("M+", 190, 30, 70, 70, panel); local buttonM_Minus = CreateButton("M-", 270, 30, 70, 70, panel); -- Row 2 local buttonCE = CreateButton("CE", 30, 110, 70, 70, panel); local buttonC = CreateButton("C", 110,110, 70, 70, panel); local buttonPct = CreateButton("%", 190, 110, 70, 70, panel); local buttonDivide = CreateButton("/",270, 110, 70, 70, panel); -- Row 3 local button1 = CreateButton("1", 30, 190, 70, 70, panel); local button2 = CreateButton("2", 110, 190, 70, 70, panel); local button3 = CreateButton("3", 190, 190, 70, 70, panel); local buttonMultiply = CreateButton("X", 270, 190, 70, 70, panel); -- Row 4 local button4 = CreateButton("4", 30, 270, 70, 70, panel); local button5 = CreateButton("5", 110, 270, 70, 70, panel); local button6 = CreateButton("6", 190, 270, 70, 70, panel); local button_Minus = CreateButton("-", 270, 270, 70, 70, panel); -- Row 5 local button7 = CreateButton("7", 30, 350, 70, 70, panel); local button8 = CreateButton("8", 110, 350, 70, 70, panel); local button9 = CreateButton("9", 190, 350, 70, 70, panel); local button_Plus = CreateButton("+", 270, 350, 70, 70, panel); -- Row 6 local buttonPlusMinus = CreateButton("+/-", 30, 430, 70, 70, panel); local button0 = CreateButton("0", 110, 430, 70, 70, panel); local buttonDecimal = CreateButton(",", 190, 430, 70, 70, panel); local buttonResult = CreateButton("=", 270, 430, 70, 70, panel); while true do local ev = WaitEvent() if (ev.source == button1 ) then FirstNum = 1; textfield:SetText("1"); elseif (ev.source == button2) then FirstNum = 2; textfield:SetText("2"); end -- elseif EVENT_WINDOWCLOSE then return 0; -- if ev.id == EVENT_WIDGETACTION then -- Print(Widget(ev.source).text) -- elseif ev.id == EVENT_WINDOWCLOSE then -- return 0 -- end end
ร—
ร—
  • Create New...