Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2022-12-31 00:00:00Z and 2023-01-01 00:00:00Z
Avatar
I'm finally done with the binary tree in windows for own client, now they are easy to create, dynamic with the ability to create at runtime or once, interconnected with each other. It seems to be more optimized algorithms compared to the beginning windows. In this as they are simple, it is easy to create components such as Popup, MessageBox. But it needs more work.
02:51
Now i think how to connect the client-server, so that it is not something complicated. But it doesn't need to extend the protocol for each window.
02:53
Anyone involved in this area, any ideas on how to implement for ui server-client communication?
02:53
Or is there any old source code of anyone who has try made ui (server-client)?
Avatar
Avatar
Kurosio
I'm finally done with the binary tree in windows for own client, now they are easy to create, dynamic with the ability to create at runtime or once, interconnected with each other. It seems to be more optimized algorithms compared to the beginning windows. In this as they are simple, it is easy to create components such as Popup, MessageBox. But it needs more work.
That looks amazing! But, what symbols are you using for the minimize/maximize and close buttons?
04:13
I would have never guessed the minimize button was that until I clicked it.
Avatar
Avatar
Voxel
That looks amazing! But, what symbols are you using for the minimize/maximize and close buttons?
Thx^^, i use "\xe2\x81\x82" (⁂) and "\xe2\x80\xbb" (※) for minimize/maximize, "\xe2\x9c\x95" (✕) for close. I tried to find something that made more sense, but I couldn't find any of the symbols.
Avatar
Avatar
Kurosio
Thx^^, i use "\xe2\x81\x82" (⁂) and "\xe2\x80\xbb" (※) for minimize/maximize, "\xe2\x9c\x95" (✕) for close. I tried to find something that made more sense, but I couldn't find any of the symbols.
Are you using the font icon pack? It's the same symbols used for these icons here
04:56
I made a manual for how to use the pack too:
04:56
HOW TO ADD A NEW ICON TO DDNET: So basically every icon is in a free pack, and you can find all the instances here: https://fontawesome.com/search?o=r&m=free&s=solid . Once you find the icon you like, you have to understand how DDNet reads these symbols. They rely on the UTF-8 encoding, meaning you have to covert it somehow. This website should be perfect for it: https://onlineunicodetools.com/convert-unicode-to-utf8 . You just select the symbol you want in font awesome, click the Copy Glyph button and paste it in the new website. Its output should look something like this: ef 8f ad. Now you just copy that into a code piece that accepts font icons, and format it to \xEF\x8F\xAD. (edited)
04:56
05:00
And, to activate the font icon pack in the code, you have to set the font to TEXT_FONT_ICON_FONT. You can find plenty of examples of how this is implimented in the code by searching for the exact term. Remember to switch it back to nullptr after so it doesn't override anything! (edited)
Avatar
a7b3eb5 M Bob, M Desoxyribonukleins\303\244ure, M Galaxy Turn, M Noovice!, M Olymp, M Stargazing, M Tobi - ddnet-maps
Avatar
Avatar
Kurosio
I'm finally done with the binary tree in windows for own client, now they are easy to create, dynamic with the ability to create at runtime or once, interconnected with each other. It seems to be more optimized algorithms compared to the beginning windows. In this as they are simple, it is easy to create components such as Popup, MessageBox. But it needs more work.
That looks cool, what are you trying to do?
Avatar
Avatar
deen
That looks cool, what are you trying to do?
I think allowing servers to draw custom gui
Avatar
Avatar
Voxel
Are you using the font icon pack? It's the same symbols used for these icons here
Oh thank you so much! I'm going to try to pick some of these up now
Avatar
Avatar
deen
That looks cool, what are you trying to do?
I want to implement a GUI system for the MRPG mode, being inspired by MMORPG. I am trying to recreate the UI of my favorite rpg game So now i think how to bridge the client to the server
Avatar
Avatar
Kurosio
Oh thank you so much! I'm going to try to pick some of these up now
update icons
Avatar
Avatar
Kurosio
I want to implement a GUI system for the MRPG mode, being inspired by MMORPG. I am trying to recreate the UI of my favorite rpg game So now i think how to bridge the client to the server
Just transfer the entire tree of windows on each change? Seems like the easiest and as long as you don't have 100 should work fine
Avatar
by requesting the best time again when it initially failed. This is still not perfectly accurate since a player on another server can get a better time, which will not get updated when the current server had no database problems. As reported by thekid36 on Discord:
The best time shown on the scoreboard on the turkish server on a ddmax.Next map (mapname: 42) is 30min..while the best time should be 4 min (it's correct on ger2 server)
So the way it works is that the best time is...
Avatar
From #5646.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [X] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#u...
Avatar
Avatar
deen
Just transfer the entire tree of windows on each change? Seems like the easiest and as long as you don't have 100 should work fine
This is a layered ui which has two layers, the first of which is the active window, the second is the rest of the workspace I think if there are a lot of windows, it will confused for user. And so far, it's also a tedious act of dragging each window at your convenience The tricky part is that need a to bridge server with the tree
Avatar
d63a7a3 Fix left shift of negative value when unpacking snapshot delta - Robyt3 4118074 Fix signed integer overflow when unpacking snapshot delta - Robyt3 8242238 Merge #6214 - bors[bot]
Avatar
Avatar
GitHub
Click to see attachment 🖼️
most favourite kind of prs, ily @Zwelf <3
happy 2
heartw 2
Exported 26 message(s)