IRC logs for #openttd on OFTC at 2023-11-11
β΄ go to previous day
00:13:53 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
00:35:15 <johnfranklin> Mascarpone cheese latte
00:42:21 <johnfranklin> Once coffee was popularised in China, all types of custom-taste coffee popped out...
00:44:18 <johnfranklin> The largest chain coffee shop sells:
00:44:18 <johnfranklin> Orange Juice Americano
00:44:18 <johnfranklin> Mascarpone Cheese Latte
00:44:18 <johnfranklin> and even Spirit Latte (only taste of spirit, without alcohol)
00:45:34 <johnfranklin> And they are always best seller
02:55:10 *** Wormnest has quit IRC (Quit: Leaving)
03:34:10 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:39:32 *** Beer has quit IRC (Quit: Leaving)
07:22:38 *** Smedles has quit IRC (Remote host closed the connection)
07:23:42 *** Smedles has joined #openttd
10:38:47 *** alfagamma7 has quit IRC (Quit: User went offline on Discord a while ago)
12:48:21 <peter1138[d]> Hmm, mixins are quite the thing
13:02:02 <andythenorth> have we discovered lunch yet?
13:03:22 <dwfreed> it's mixed in with work
13:22:00 <peter1138> Not on a Saturday though
14:20:56 <peter1138> Hmm, making the list divider thinner is... weird.
14:21:26 <peter1138> And messes up scrolling lists.
14:41:50 *** virtualrandomnumber has joined #openttd
14:49:00 *** virtualrandomnumber has quit IRC (Quit: virtualrandomnumber)
15:25:06 <peter1138> mixins made that super easy.
15:25:18 <truebrain> what is this for witchcrafting?
15:25:33 <peter1138> Checkbox is a mixin.
15:25:46 <peter1138> Compose in whatever order is needed...
15:26:35 <peter1138> Icons I've never seen before ;D
15:27:06 <truebrain> do I dare to ask what you mean with "mixin"? π
15:27:41 <peter1138> (Not the same was as StrongTypes)
15:28:02 <peter1138> using DropDownListCargoItem = DropDownCheck<DropDownIcon<DropDownString<DropDownListItem>, false>>;
15:28:55 <truebrain> you are crazy π (in a good way)
15:29:09 <peter1138> StrongType uses a list instead, but this also uses virtual methods and calls from one to the next.
15:29:19 <peter1138> And, er... yeah, I don't know what I'm doing :p
15:31:31 *** Wormnest has joined #openttd
15:31:35 <peter1138> I was once accused of doing C++ in a very C way ;)
15:32:22 <truebrain> I am still in shock that I see icons π
15:32:34 <peter1138> Well we already have list items with icons.
15:32:40 <peter1138> On the toolbar menus.
15:34:59 <peter1138> Just proof of concept. Because it relies on templates, the shared implementations need to be headers.
15:35:21 <peter1138> I could less intrusively just use the existing DropDownListCheckedItem and not put an icon on it.
15:35:34 <talltyler> Nooo I want icons π
15:36:37 <peter1138> Hmm, could even mask items that aren't carried by any station.
15:36:42 <talltyler> Timetable in ticks is just about done, except my late counter is off by a factor of 2 and Iβm not sure how π
15:37:08 <peter1138> Sounds like ticks per day vs ticks per second?
15:37:41 <talltyler> It does sound like that, but I used ticks per day
15:38:03 <peter1138> ^ that's the rationale, truebrain
15:38:15 <truebrain> ah, those ugly buttons
15:38:17 <peter1138> "What do all these two letter codes mean"
15:38:19 <truebrain> I surprise their existence
15:38:22 <talltyler> Would it be more chaotic to ditch the acronyms and use icons there instead? π
15:38:43 <peter1138> talltyler, or use the drop down list instead?
15:39:03 <talltyler> Oh, is that what your screenshot is from?
15:39:05 <peter1138> I'd say that currently the icons are not really recognised anywya.
15:39:17 <talltyler> I assumed it was the station menu or something
15:39:18 <peter1138> Yes, I'm working on replacing those buttons.
15:39:40 <peter1138> Ah no... although we could easily add icons there now ;)
15:40:00 <peter1138> This one is only different because it has checks.
15:40:06 <peter1138> Multipe selection :D
15:40:32 <talltyler> Lololol Iβm stupid
15:40:40 <talltyler> Just need to figure out how stupid
15:41:00 <peter1138> We're all stupid, mainly because we're still working on this thing instead of moving on :D
15:41:42 <talltyler> Moving on to what? Thatβs why we havenβt. π
15:46:25 <peter1138> using DropDownListCargoItem = DropDownCheck<DropDownIcon<DropDownString<DropDownListItem, FS_SMALL>, false>, FS_SMALL>;
15:48:32 <peter1138> Yeah, that also works, except the icon is the same height as FS_NORMAL, so it's just small for no reason :D
15:51:09 <peter1138> I'm not sure what to display for the drop down label when it's not open. Maybe something like "Nothing", "Passengers", "Multiple", and "All" (for 0 β 1 β N-1 β N)
15:51:49 <peter1138> Hmm, complicated by "Nothing" being a valid option o_O
15:54:45 <peter1138> I checked with the original game. Much easier, there's no buttons or filters at all.
16:00:45 <_glx_> `[813/813 -- 108.037]Linking CXX executable openttd.exe` full release rebuild of master, that's fast π (`[813/813 -- 42.225]Linking CXX executable openttd_test.exe` for debug)
16:07:41 <peter1138> 6 files changed, 198 insertions(+), 218 deletions(-)
16:15:28 <peter1138> What was I doing...
16:34:05 <peter1138> SetDParamStr(0, "All");
16:34:19 <peter1138> ^ I recently realised I can do this for prototyping...
16:36:55 *** Wormnest has quit IRC (Quit: Leaving)
16:43:22 <ahyangyi> Jekyll is a mess, I should generate html directly instead
16:44:14 <ahyangyi> Adding localization basically requires me to rewrite all templates in the theme, makes me wonder what's the point of having a theme at all
16:47:51 <peter1138> Uh, reopening a dropdown immediately if an option was selected is... weird.
16:48:06 <peter1138> It selects the same option again, so indefinite toggle. :o
16:48:13 <ahyangyi> And that means I should study FIRS templates instead... a decision I should have taken months ago
16:57:44 <peter1138> Hmm, I guess Window::Iterate() will iterate windows added since the call to Window::Iterate().
17:04:53 <peter1138> No it can't be that, that would be an infinite loop.
17:20:05 <andythenorth> ahyangyi: I really liked Jekyll for the OpenTTD website, it was cool
17:20:20 <andythenorth> I would not recommend using Chameleon as I do in FIRS
17:20:40 <andythenorth> Chameleon is fantastic, but it's a niche templating language, and can be quite boilerplate heavy on xml-ish tags
17:20:52 <andythenorth> Jinja would be the weapon of choice currently, I believe
17:25:43 *** WormnestAndroid has joined #openttd
17:38:10 <ahyangyi> I'm not sure generating Markdown with Python code then translating them into HTML is really better than directly generating the HTML
17:38:30 <ahyangyi> But the OpenTTD website use case is much better suited to Jekyll
17:39:23 <ahyangyi> On the other hand, if I have to rewrite all the HTMLs, keeping Jekyll to do its stuff might not be a bad thing either... I dunno
17:40:15 <ahyangyi> Not much value added, but not much freedom taken away either
17:40:44 <ahyangyi> I mean, I can even jinja into jekyll
17:46:00 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
17:49:41 *** WormnestAndroid has joined #openttd
17:56:01 *** bryjen has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** Extrems has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** esselfe has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** WormnestAndroid has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** Kitrana has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** felix has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** asymptotically2 has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** greeter has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** dwfreed has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** ST2 has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** misterbungus has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** izhirahider has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** twpol has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** rightnut has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** mindlesstux has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** nebulabc_ has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** thelounge34 has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** Ttech has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** Smedles has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** APTX has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:01 *** Flygon has quit IRC (charon.oftc.net reticulum.oftc.net)
17:56:33 *** WormnestAndroid has joined #openttd
17:56:33 *** Smedles has joined #openttd
17:56:33 *** Extrems has joined #openttd
17:56:33 *** misterbungus has joined #openttd
17:56:33 *** esselfe has joined #openttd
17:56:33 *** asymptotically2 has joined #openttd
17:56:33 *** thelounge34 has joined #openttd
17:56:33 *** Kitrana has joined #openttd
17:56:33 *** mindlesstux has joined #openttd
17:56:33 *** rightnut has joined #openttd
17:56:33 *** dwfreed has joined #openttd
17:56:33 *** izhirahider has joined #openttd
17:56:33 *** greeter has joined #openttd
17:56:33 *** nebulabc_ has joined #openttd
18:01:50 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
18:14:58 <peter1138> (I've updated that comment in case you've already looked)
18:23:12 <andythenorth> peter1138: Wine is better anyway
18:25:15 <peter1138> Funnily enough I remembered I have some.
18:25:58 <peter1138> Did you see your icon list above?
18:27:39 <peter1138> > Cow farms: "A farm that do not keep disgusting pigs."
18:28:22 <peter1138> andythenorth, make Pig farms: "A farm that do not keep disgusting cows."
18:36:50 <DorpsGek> - Update: Translations from eints (by translators)
19:21:39 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
19:45:05 <peter1138> Reopening to pretend it didn't close is a bit dodgy :/
20:42:49 <peter1138> Yes, that's my new plan :)
20:43:35 *** _aD has quit IRC (Ping timeout: 480 seconds)
20:51:52 *** WormnestAndroid has joined #openttd
20:54:07 <peter1138> Probably blows up if my updated list is not the same size as the original, but.
20:59:55 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
21:01:55 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:44:42 <peter1138> Shall I have another glass?
21:59:44 <peter1138> 10 files changed, 455 insertions(+), 537 deletions(-)
22:00:10 <peter1138> Huh. When you do a refactor, add some new features, and it comes to less lines of code...
22:01:16 <peter1138> Oh, wrong stats, that includes some layout changes too.
22:01:23 <peter1138> 10 files changed, 303 insertions(+), 372 deletions(-)
22:51:19 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:55:21 *** WormnestAndroid has joined #openttd
23:05:59 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:17:39 *** Wormnest has joined #openttd
23:50:47 *** WormnestAndroid has quit IRC (Remote host closed the connection)
23:50:48 *** WormnestAndroid has joined #openttd
continue to next day β΅