!mZJJVrXvrfaQDqkJGH:freedombox.emorrp1.name

CorsixTH Technical

338 Members
5 Servers

Load older messages


SenderMessageTime
26 Mar 2023
@albertfree:matrix.orgalbertfreesimplest is either a template file, or an array describing the lines to write18:46:28
@albertfree:matrix.orgalbertfreewe don't have a map in the main menu perhaps?19:54:59
@albertfree:matrix.orgalbertfreeor a world, for that matter?19:55:15
@albertfree:matrix.orgalbertfreecan you always grab english text even if using another language?20:15:11
@albertfree:matrix.orgalbertfree(pondering if we can borrow the text for saving explanation in the file)20:15:56
@albertfree:matrix.orgalbertfree https://dpaste.com/6FXEA88VR save is pretty trivial, what bothers me is the amount of lines that you get 20:18:15
@albertfree:matrix.orgalbertfreeI already have the "entry" names elsewhere, so "MinSalary" resp "SalaryAdd" should be enough to act as a filter for settings to save20:19:22
@albertfree:matrix.orgalbertfreeenough today, good night20:20:43
27 Mar 2023
@_discord_367754591367856138:t2bot.ioLewri Albert do you know if the C++ function l_font_draw_wrapped can handle a table?
https://github.com/CorsixTH/CorsixTH/blob/d8d05f46e5673d6b903947cf50d390a188cf8519/CorsixTH/Src/th_lua_gfx.cpp#L368
17:50:04
@thecycoone:sealbaker.comthecycoone what do you mean Lewri ? 17:51:49
@_discord_367754591367856138:t2bot.ioLewri Likely your dpaste is fine, though iirc config_finder also does this line by line writing, though iirc you weren't keen on its methods 17:52:09
@thecycoone:sealbaker.comthecycooneit doesn't accept a lua table if that's what you mean17:53:05
@_discord_367754591367856138:t2bot.ioLewri I'm just looking back at how ..font:sizeOf (C++) can't handle a table. I was wondering if the main drawWrapped function was the same 17:53:13
@_discord_367754591367856138:t2bot.ioLewri *a table of strings 17:53:26
@thecycoone:sealbaker.comthecycooneit can't no17:54:53
@_discord_367754591367856138:t2bot.ioLewri It'd be beneficial to probably push multiple strings to wrapped dialogs. Though UIInformation gets around it by determining the size of each line. UIConfirmDialog doesn't do this 17:54:59
@thecycoone:sealbaker.comthecycoonewhat would you expect, concatenated, new line separated, ...17:56:04
@_discord_367754591367856138:t2bot.ioLewri UIInformation inserts each line of a string from a table underneath each one with a line break. UIConfirm just through the whole 'text' at it and hopes you only put in one line. 17:56:55
@_discord_367754591367856138:t2bot.ioLewri * UIInformation inserts each line of a string from a table underneath each one with a line break. UIConfirm just throws the whole 'text' at it and hopes you only put in one line. 17:57:06
@thecycoone:sealbaker.comthecycooneseems like that is better handled on the lua side, by making the full output before asking for the size17:57:45
@_discord_367754591367856138:t2bot.ioLewri Easiest demon is just changing the code of UIConfirm to accept a table of strings and handle it inside the lua. Not sure if that's good practice though 17:57:53
@_discord_367754591367856138:t2bot.ioLewri Yeah, the C++ function gives you the size of one string from your table at a time. That's fine. You just have to add up all your values at the end 17:58:51
@thecycoone:sealbaker.comthecycoonekinda - accounting for your line space17:59:28
@_discord_367754591367856138:t2bot.ioLewri Yeah, you have to give it the line space pixels 17:59:46
@_discord_367754591367856138:t2bot.ioLewri I'll add it to my todos. 18:00:42
@_discord_367754591367856138:t2bot.ioLewri Oh 18:03:21
@_discord_367754591367856138:t2bot.ioLewri you can always do text = _S.foo .. "//" .. _S.bar and that makes it one string 18:03:51
@thecycoone:sealbaker.comthecycooneYeah, either of the above - whatever is appropriate for the scenario18:04:43
28 Mar 2023
@_discord_199262521176227840:t2bot.io【☆Lløyd LeJack☆】 changed their display name from 【☆Lløyd LeJack☆】 to ☆Lløyd LeJack☆#2319.03:00:25
@_discord_199262521176227840:t2bot.io【☆Lløyd LeJack☆】 changed their display name from ☆Lløyd LeJack☆#2319 to 【☆Lløyd LeJack☆】.03:00:27

There are no newer messages yet.


Back to Room ListRoom Version: 6