Search found 614 matches

by rjroldan1
Fri Oct 30, 2020 20:16
Forum: Decorations and Tools
Topic: Road Deco: Runway Markings
Replies: 11
Views: 1484

Re: Road Deco: Runway Markings

Ahh you mean the yellow thing?
by rjroldan1
Fri Oct 30, 2020 20:13
Forum: Lua Scripting
Topic: GUI Compendium
Replies: 19
Views: 1717

Re: GUI Compendium

Thanks btw how can i close panels from your script :

Code: Select all    Reset

parent:addCanvas{ ..., -- Your other arguments onDraw = function(self, x, y, w, h) Drawing.drawNinePatch(NinePatch.PANEL, x, y, w, h) end }
Interactive Lua editor
Run
?
by rjroldan1
Wed Oct 28, 2020 9:09
Forum: Lua Scripting
Topic: GUI Compendium
Replies: 19
Views: 1717

Re: GUI Compendium

If i defined x and y axis for positioning labels inside ListBox "listbox:addLabel{x=x,y=y,text=""}" it will remain the same position in different screen resolution?
by rjroldan1
Mon Oct 26, 2020 8:20
Forum: Lua Scripting
Topic: GUI Compendium
Replies: 19
Views: 1717

Re: GUI Compendium

Btw @Lobby how do i get the center part of ListBox Label?also the center part of the GUI parent.
I want to display Listbox label at the center of its canvas,im afraid to use X and Y because i think it will change in different resolution.
by rjroldan1
Fri Oct 23, 2020 10:21
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

Check Gui Compendium @Jeremiah Stephens
by rjroldan1
Fri Oct 23, 2020 10:20
Forum: Lua Scripting
Topic: GUI Compendium
Replies: 19
Views: 1717

Re: GUI Compendium

How can i made Sliders be Whole number? Caused i want it to be a quantity value
by rjroldan1
Thu Oct 22, 2020 18:33
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

Drawing.drawText("E!", 30, 30) function script:buildCityGUI() local function aci() local dialog = GUI.createDialog { title = "Advanced city infomationn" } --local root = GUI.getRoot() local layout = dialog.content:addLayout{ vertical = true, spacing=2 } local panel = addPanel { width = 30, height =...
by rjroldan1
Wed Oct 21, 2020 19:32
Forum: Terrain and Trees
Topic: People (Trees)
Replies: 6
Views: 1152

Re: People (Trees)

If this also reduced polution, noice etc?
by rjroldan1
Wed Oct 21, 2020 19:28
Forum: Plug-In Discussion
Topic: How to write (.plugin)file?
Replies: 2
Views: 1105

Re: How to write (.plugin)file?

Goto console commands then type help it will show how to encrypt plugin to ".plugin" Extension name :bf
by rjroldan1
Wed Oct 21, 2020 11:29
Forum: Lua Scripting
Topic: Animation Dev Tool (Open Source)
Replies: 5
Views: 634

Re: Animation Dev Tool (Open Source)

Ughh i want to create text box that can only input is integer like that :(


Btw great Job 100%
by rjroldan1
Tue Oct 20, 2020 17:47
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

Sorry i forgot it's...

Code: Select all    Reset

local line = dialog:addButton{ icon = Icon.CITY, x = -35, width = 25, text = 'City Name', onClick = function() Debug.toast('City Name') end }
Interactive Lua editor
Run
by rjroldan1
Tue Oct 20, 2020 8:15
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

Based on what I've understood in your codes you want to have text inside the button?

Code: Select all    Reset

local line = addLine('City name:', 10) line:addButton{ icon = Icon.CITY, x = -35, width = 25, text = 'City Name', onClick = function() Debug.toast('City Name') end }
Interactive Lua editor
Run
by rjroldan1
Tue Oct 20, 2020 7:29
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

Jeremiah Stephens wrote:
Mon Oct 19, 2020 22:32
Screenshot_20201019-215723_TheoTown.png
My question is why did you put dialog.content:addButton{} if you want to show only the textframe?
by rjroldan1
Sun Oct 18, 2020 21:00
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

I'd also used : function script:finishInformationDialog(x,y,_,dialog) dialog.title:setText("Haha") dialog.content:addListBox{ x = 10, y = 10, height = -10, width = -10 } dialog.controls:addButton{ x = -35, width = 30, icon = Icon.OK, onClick = function() Debug.toast('Clicked on entry '..i) end } end...
by rjroldan1
Sun Oct 18, 2020 20:51
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

So you want make a thing like gui example in Dev tool plugin by Lobby? Actually you can look at gui example post for the complete code. local function showDialog() -- Body of dialog that will show when tool is clicked end function script:event(x,y,lvl,event) if event == Script.EVENT_TOOL_ENTER then...
by rjroldan1
Sun Oct 18, 2020 20:25
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

ian` wrote:
Sun Oct 18, 2020 19:43
you can look at gui compendium, there is a complete explanation of gui.
Based in the docs its only visible after the building/road was built
by rjroldan1
Sun Oct 18, 2020 13:05
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

Can we use gui on building taps? As substitute to the onClick notif or its info itself For simply method, you can use script:finishInformationDialog(x,y,level,dialog) -- script.lua function script:finishInformationDialog(x,y,_,dialog) dialog.title:setText(...) dialog.content:addListBox{...} dialog....
by rjroldan1
Sat Oct 17, 2020 20:48
Forum: Lua Scripting
Topic: GUI example in Plugin Creator Tools
Replies: 2
Views: 637

Re: GUI example in Plugin Creator Tools

Can we use gui on building taps? As substitute to the onClick notif or its info itself
by rjroldan1
Sat Oct 17, 2020 17:51
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

Lobby can the value of a variable that is in process such as in script:update() would be stored insidr tables even if it is pre-defined from local declaration .... I think it the game should read and used the value of the variable that is in pre-defined in var-declaration than the saved values Here...
by rjroldan1
Fri Oct 16, 2020 9:12
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 161
Views: 8949

Re: Lua chatbox

-- Let's use a unique, own key for the table that we will create within a storage table local key = script:getDraft():getId() -- Let's get our personal storage table within the city storage table (will be created if it doesn't exist) local table = Util.optStorage(City.getStorage(), key) -- Let's pu...

Go to advanced search