Category | Scripting |
Created | 30.06.2016 18:27 |
Fractal Modding (Fractal) | 30.06.2016 18:30 |
---|---|
Hello! What has changed in the "render Overlay" between FS2013 and FS 2015? Doing the basic things that I did in FS2015 to FS2013 error pops up. - Translated into google translator Cheers, Foobar |
Emil Drefers (Unknown) | 01.07.2016 07:34 |
---|---|
Hi Foobar, please have a look at: http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/Vehicle line 4527 maybe it helps you to sort out was has changed? Cheers, Emil |
Fractal Modding (Fractal) | 01.07.2016 09:06 |
---|---|
Hello Sorry my mistake, I meant "setOverlayUVs" Cheers, Foobar |
Emil Drefers (Unknown) | 04.07.2016 07:45 |
---|---|
Hi, that function is still available. Not sure what has changed, but the arguments are the "oberlayId" and the four UV positions (x,y). What error message does pop up by the way? Cheers, Emil |
Fractal Modding (Fractal) | 05.07.2016 12:25 |
---|---|
Already did it, thanks :) Cheers, Foobar |
Fred Zanella (fredzaza2) | 21.08.2016 16:58 |
---|---|
Hi , i would like to show a screen when i am in proximity of my vehicule and not entered. this is my script : function Godet:load(xmlFile) local fred = getXMLString(xmlFile, "vehicle.fred#filename"); if fred ~= nil then fred = Utils.getFilename(fred, self.baseDirectory); self.imageA = createImageOverlay(fred); end; end; function Godet:update(dt) renderOverlay(self.imageA, 0.92, 0.185, 0.056, 0.08); end; this doesn't work in update function , just in draw function when the vehicule is entered please can you help me for my problem ? thanks |
Fractal Modding (Fractal) | 24.08.2016 11:35 |
---|---|
Hi fredzaza2, try as I gave here: function Godet:load(xmlFile) self.hudPosX = 0.465; -- position X self.hudPosY = 0.01; -- position Y self.hudWidth = 0.235; -- width image self.hudHeight = 0.146; -- height image self.defaultHudOverlay= Overlay:new("defaultHudOverlay", "textures/default_image.png", self.hudPosX, self.hudPosY, self.hudWidth, self.hudHeight); end; function Godet:delete() if self.defaultHudOverlay then self.defaultHudOverlay:delete(); end; end; function Godet:update(dt) self.defaultHudOverlay:render(); end; Cheers, Foobar |
Note: Log in to post. Create a new account here.