Jazz
Members-
Posts
265 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Everything posted by Jazz
-
Is there a way to set the initial position of the slider knob? eg volume is set at say 50 at program start.
-
How do you check which widget sent the event? Trying to get something simple but usable for my game entry...
-
How do you check the event queue?
-
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?
-
I think you forgot to include some files like /Materials/GUI/arrow_down.tex
-
Animation not playing when running to the right.
Jazz replied to Megalocerous's topic in Programming
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 -
I just ran into this yesterday with a cave model. What worked was in the model editor I chose Tools>Collapse.
-
shadmar his first example does that. It draws the fps on the sides of rotating cube.
-
Thank you so much Rick! I've been using luajit for enet with my own compiled dll and it is not fun.
-
Josh since enet is already built-in can't you just expose it to LUA or am I missing something?
-
I made that up in Photoshop as a suggestion. I apologize for getting your hopes up.
-
Sorry it isn't. I made that up in Photoshop as a suggestion.
-
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
-
Shows fine for me in white text. Maybe you need to set the color first. context:SetColor(1,0,0,1)
-
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)
-
It is declared with Script.heartFlatlining so you access it with self.heartFlatlining within the same script. if self.heartFlatlining == true then
-
Is it following the pivot's local rotation instead of global? GetRotation(true)
- 2 replies
-
- 2
-
- Player
- ThirdPerson
-
(and 1 more)
Tagged with:
-
System:Print("x:"..tostring(self.Pivot:GetRotation().x) .."y:"..tostring(self.Pivot:GetRotation().y), "z:"..tostring(self.Pivot:GetRotation().z) )
-
Shouldn't that be self.Pivot:GetRotation() ?
-
Played a bit more with ragdolls.
-
Taking resolution into account when performing 2D render functions.
Jazz replied to lxFirebal69xl's topic in Programming
http://www.leadwerks.com/werkspace/topic/13485-font-sizes/#entry94658- 4 replies
-
- resolution
- 2d drawing
-
(and 1 more)
Tagged with:
-
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.
-
Last 2 times I had this issue a reboot fixed it.
-
You have many good ideas Brutile.
-
Thanks. Removing the .meta files worked.