Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
98 I hate doing frontend stuff SO MUCH
upload_2018-3-1_21-45-55.png

Just that took me WAY too long.

I first tried bootstraps alert stuff, but that would always become too big for some idiotic reason, so after spending too much time trying to get that to work I decided to give up and use bootstraps label classes instead.
With that done it was time to put a nice icon there instead of text. Once again, no matter what I did I couldn't get it the correct height and width so it doesn't look stupid. On the rare moments that I got the correct width, half of the top if not more decided to not render. Keep in mind I didn't even try to get it at the correct place at that time so it was just awkwardly at the top right corner without any space between it and the borders which just looks plain bad.

Also, guess what? Because I couldn't get the alert class to behave I need to look into another way of making the user able to remove that warning, as the yellow is kind of distracting.

Guess its time to make a new issue in github named "replace no alert warning with icon" and label it "won't fix".

In other news, my websocket wrapper on the client now allows you to register functions for when the connection breaks. Allowing me to render those warnings when stuff breaks (which will probably happen).
The test alert now also gets properly handled on the client as it now actually looks up the username that it needs to display.

TL;DR: CSS sucks, had to work with it and nothing wanted to work. Resulted in ugly hacks and workarounds to get a less then ideal result and an angry lenscas.
 

duckfan77

Popular Member
Mar 18, 2013
80
683
118
99 I tend to agree. Algorithm and program design is fairly easy, but setting up a UI and stuff for people, no can do.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
51 finally decided to make my background thingy working again.
So, now I once again get random pictures form chillstep.info (the "epic" gallery) as my background.
Currently adding some fail saves so it doesn't crash again if I for some reason don't have internet. As that screws up more then just my background and the reason I originally disabled it.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
48 in other news, I not only made the background thingy less error prone, I also made it its own little script that gets called using io.popen. Which should result in less problems if it ever hangs or errors. I also did a derp and made it so that the fallback images need to be downloaded from the internet. Guess I need to change that one day..... >_>
 

duckfan77

Popular Member
Mar 18, 2013
80
683
118
47 Team is doing well. Had some unfortunate occurrences, including an E-Stop, but things are going well for the most part.