Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-12-13 00:00:00Z and 2020-12-14 00:00:00Z
Avatar
i mean the file called tuning.h
Avatar
hi
Avatar
hi
08:34
c4362a6 add voting constants, align UI elements, refact... - Robyt3 1499cd9 remove unnecessary empty space, improve corners... - Robyt3 5bb6d47 fix inconsistent listbox background alpha, fix ... - Robyt3 a3ba7da Merge pull request #2813 from Robyt3/votingIssues - oy
08:44
4839a1e use bytes_be_to_uint for demo data - Robyt3 c6bdeab add demo loading popup - Robyt3 1f1fef5 Merge pull request #2816 from Robyt3/issue730 - oy
08:45
15dbf34 Bump minimum CMake version from 2.8 to 2.8.12 - heinrich5991 c210627 Manually patch gtest to allow CMake version 2.8... - heinrich5991 cd506ff Revert "added missing policy for legacy opengl" - heinrich5991 23f3351 Merge pull request #2821 from heinrich5991/pr_c... - oy
08:53
c4da3fc motd and textrender KISSify - TsFreddie 0467d04 more lessy code - TsFreddie 73f4957 Prevent zero length mem_alloc - TsFreddie e7f9705 fix style - TsFreddie 826977b include zero image quad but not draw them - TsFreddie
08:54
47ec1d5 Separator typo - ChillerDragon 05db043 Merge pull request #2820 from ChillerDragon/pr_... - oy
Avatar

Text selection and input

!grafik !grafik Implement keyboard-based text selection for console, chat and editboxes. Implement mouse-based selection for editboxes. Basically does everything that #2521 does (paste, cut, select all etc.) but with the new text render and with rend...
Avatar
@P. use cmake-gui instead (or do it in console)
13:55
integrated cmake system sucks on visual studio
Avatar
The mad lad actually did everything I wanted.
15:32
realsmiley it should be trivial to implement IME with this CLineInput
Avatar
he came, rewrote the game from scratch within one year and hopefully never left: Robyt3
🙃 2
Avatar
For real, the codebase looks completely different now even from 0.7.5
Avatar
is that a good thing?
Avatar
debatable
16:37
even subjective maybe
Avatar
definitely subjective, since it's about comparing code quality
16:38
I'd say change is objectively a slight negative, so it's all about outweighting with benefits
Avatar
But I guess for ppl don't care much about imputing or text, it's like changing a bunch of stuff for nothing.
Avatar
why is change a slight negative?
Avatar
@Learath2 because it makes maintaining harder and others have to re-learn a few things
Avatar
hm, there is a time cost associated with change, true
Avatar
I think refactoring in general has risks of putting ppl out of the loop and breaking perfectly functional code
Avatar
All the changes from 0.7.5 to now I quite like though. Most of the code that got worked on was rotting
16:41
Rotting since matricks last touched it even 😛
Avatar
Teeworlds is heavily modified and other projects have to catch up/merge any refactoring
Avatar
But robert actually made the CLineInput really good to work with IME now.
16:41
realsmiley
Avatar
I guess it's all about how much you like matricks code style 😛
Avatar
Well not only that, but also there are things that were flat out broken and TextRender I don't think even matricks liked 😛
Avatar
Aren't features and fixes almost orthogonal to refactors?
Avatar
I distinctly remember a "foolish" comment there 🙂
16:42
orthogonal in what way? what are the axes?
Avatar
the feature/fix axis, and the refactoring axis
16:43
probably the textrendering is the best case for refactoring, since that seemed to have fundamental flaws
Avatar
Personally I still think textrender is both a refactor and a feature update (with the auto ellipsis and text alignment feature)
Avatar
Ah, but changes don't just lie on the axes. e.g. the refactoring for textrender also fixed a lot of alignment issues
Avatar
that realsmiley emote scares me. Anyway, let us hope Robyt never leaves us 🙏
Avatar
I don't understand you @Learath2
Avatar
Robyt3 madlad
Avatar
Well you said features and fixes are orthogonal to refactors. Most changes are a bit of both though
Avatar
it depends, but sometimes the refactoring and the features/fixes are very independent things
Avatar
Refactoring arcane code can often fix bugs
Avatar
Doesn't it rather introduce bugs?
16:47
Since old code is well tested?
Avatar
I think the recent refactors are motivated by fixing issues. Which is nice.
Avatar
Not always, e.g. tl/algorithm
Avatar
and most UI fixes
Avatar
We did a bit of cleanup in ddnet recently and started to use binary search which is part of tl and very old code
16:49
turns out it wasn't ever tested because the binary search in tl/algorithms wasn't even binary search 😛
Avatar
I have a very different policy when doing fixes/features, not to touch code that doesn't have to be touched, so it's interesting to see the difference in philosophy 🙂
16:49
@Learath2 that sounds rare though, dead code
Avatar
Avatar
Learath2
turns out it wasn't ever tested because the binary search in tl/algorithms wasn't even binary search 😛
Hold up, tl's binary search was all over the new textrender
Avatar
@TsFreddie 0.7 fixed it a month or so before us 😄
Avatar
Thank god
16:50
Almost had a heart attack
😆 1
Avatar
Why thank god? It was linear search. If it was broken in vanilla too you'd get free optimization 😄
Avatar
Oh. I thought you mean it was outright broken in before fix
Avatar
@Dune Ah I see what you mean. Yes I agree that fixes and features should touch the minimum amount of code possible
16:52
But I also see great value in refactoring old code that's badly designed. TextRender e.g. was awful
Avatar
It still is a little wack tbh.
16:55
I don't like the required cursor clearing on each frame but I really don't have any better idea.
Avatar
Well it's a consequence of how UI is done in teeworlds
Avatar
And now you have to consider whether your text is changing or not. Which is more work when using the textcursor for the sake of optimization.
Avatar
(One might say the entire UI desperately needs a refactor, everyone migrated to either stateful retained mode uis or hybrid polling uis)
Avatar
Robert might just do it
Avatar
retained mode ui brings with it a whoooole host of problems, ever wonder why there are like 50000 js web frameworks or things like MVC?
16:59
The UI state falling out of sync with the actual state is absolutely awful to deal with, so many issues that takes hours to debug because your UI is lying to you 😛
Exported 81 message(s)