Jump to content

Jazz

Members
  • Posts

    265
  • Joined

  • Last visited

Everything posted by Jazz

  1. Jazz

    Slider Widget

    Is there a way to set the initial position of the slider knob? eg volume is set at say 50 at program start.
  2. Jazz

    More Widgets

    How do you check which widget sent the event? Trying to get something simple but usable for my game entry...
  3. Jazz

    More Widgets

    How do you check the event queue?
  4. Rounded buttons and the gradient don't work for me. Tried blank project, marble project, and my latest project. Code used: gui = GUI:Create(context) gui:GetBase():SetScript("Scripts/GUI/Panel.lua") local buttonPlay = Widget:Create(100,200,200,90,gui:GetBase()) buttonPlay:SetScript("Scripts/GUI/Button.lua") buttonPlay:SetText("Play") local buttonQuit = Widget:Create(100,300,200,90,gui:GetBase()) buttonQuit:SetScript("Scripts/GUI/Button.lua") buttonQuit:SetText("Quit") In Button.lua rounded rectangles only draw a few pixels in the top left of the button. I had to change the command to the following to get a rectangle. The gradient doesn't show in either case. gui:DrawRect(pos.x,pos.y,sz.width,sz.height,0,scale*3) to gui:DrawRect(pos.x,pos.y,sz.width,sz.height,0,0) gui:DrawRect(pos.x,pos.y,sz.width,sz.height,1,scale*3) to gui:DrawRect(pos.x,pos.y,sz.width,sz.height,1,0) First pic is stock script and second is same but after hovering over the Play button. Notice the pixels top left of each word. Third and fourth are after the above change. The font only changes size in my project but I don't set the scale in any of my scripts... am I doing something wrong?
  5. Jazz

    More Widgets

    I think you forgot to include some files like /Materials/GUI/arrow_down.tex
  6. The else for key A was always being called when key D was down. Simple fix: if window:KeyDown(Key.D) then self.playerangle = -90.0 self.ismoving = true move = move - self.movespeed elseif window:KeyDown(Key.A) then self.playerangle = 90.0 self.ismoving = true move = move - self.movespeed else self.ismoving = false end
  7. I just ran into this yesterday with a cave model. What worked was in the model editor I chose Tools>Collapse.
  8. shadmar his first example does that. It draws the fps on the sides of rotating cube.
  9. Thank you so much Rick! I've been using luajit for enet with my own compiled dll and it is not fun.
  10. Josh since enet is already built-in can't you just expose it to LUA or am I missing something?
  11. I made that up in Photoshop as a suggestion. I apologize for getting your hopes up.
  12. Sorry it isn't. I made that up in Photoshop as a suggestion.
  13. This was brought up before and my suggestion was to toggle splitting the scene list in two and drag between them. http://www.leadwerks.com/werkspace/topic/13144-menu-for-parent-unparent/#entry93762
  14. Shows fine for me in white text. Maybe you need to set the color first. context:SetColor(1,0,0,1)
  15. Set it to alpha first then back to solid after: context:SetBlendMode(Blend.Alpha) local font = Font:Load("Fonts/arial.ttf", 48) context:SetFont(font) context:DrawText("YOU WIN!", context:GetWidth()/2, context:GetHeight()/2) context:SetBlendMode(Blend.Solid)
  16. It is declared with Script.heartFlatlining so you access it with self.heartFlatlining within the same script. if self.heartFlatlining == true then
  17. Is it following the pivot's local rotation instead of global? GetRotation(true)
  18. System:Print("x:"..tostring(self.Pivot:GetRotation().x) .."y:"..tostring(self.Pivot:GetRotation().y), "z:"..tostring(self.Pivot:GetRotation().z) )
  19. Shouldn't that be self.Pivot:GetRotation() ?
  20. Played a bit more with ragdolls.
  21. http://www.leadwerks.com/werkspace/topic/13485-font-sizes/#entry94658
  22. Last used LW a month ago and was fine, now I'm having this problem as well.. Also running any project from the editor runs at 10 - 25 fps but get full 60 fps when published as stand alone.
  23. Last 2 times I had this issue a reboot fixed it.
  24. Jazz

    Delta Time

    You have many good ideas Brutile.
  25. Thanks. Removing the .meta files worked.
×
×
  • Create New...