Jump to content

Vantha

Community Members
  • Posts

    488
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by Vantha

  1. I opened a second editing pr for some Athenian units that were left untouched in the first one https://github.com/TheShadowOfHassen/0-ad-history-encyclopedia-mod/pull/152
  2. @guerringuerrin Ok. As explained here, the icon tag has a property called 'displace' that allows moving the icon on the x and y axis by a certain number of pixels. Now, the target icons measure 32x32 pixels while the font is only 16 pixels high. A downwards offset by half the difference (in this case 8 pixels) perfectly centers the icon on the text => displace="0 8". (The text might appear a bit smaller than 16 pixels because it mostly contains lowercase letters, so I suspect an offset of 9 pixels might look slightly better, but you'll have to be the judge for that) I suggested according changes to the latest merge request.
  3. Sure, I can help with that. Where is the code? I don't see a merge request for it.
  4. Not exactly sure if I understand that correctly, what appendage string do you mean? Maybe the best way would be to simply store the images' resolutions somewhere in a file and read it from there.
  5. I have an image GUI object and would like to dynamically resize it to its texture's aspect ratio. Is it possible to read an image file's resolution in JavaScript or does it require editing the C++ source code?
  6. Does deleting the 'simulation' folder help? It only contains (currently unused) links to some articles inside the XML templates.
  7. Thanks. Well, the log files didn't contain any error messages last time... Is the crash message the same as before?
  8. Ok, I can picture what you mean now, that might indeed be useful to have. I'll see what I can do. You've downloaded the mod from the GitHub repo, correct? Deleting the .gitattributes, the README.md, and the Setup.js should get it working. By the way, if anyone is interested, Setup.js is the script which I'm using to make the directories, extract the data from the xmls, categorize them, and create the json files. I'm running it with NodeJS and its filesystem and xmlBuilder package.
  9. Interesting idea. We currently only have the section for related articles on the right (which is currently empty because they have to be filled manually). Adding a button below the articles that simply opens the first of them (i.e. "the next page") won't be hard to implement. I'm sure some players would prefer the feeling of leafing through a book rather than of clicking through menus. No, of course not. I'm still unsure what to go for with the images.
  10. Hmm, not sure if I like the large square portraits. They take up so much space.
  11. Where would you place them on the page? Images would be great, but the articles themselves should remain the focus point of the layout.
  12. Can someone share their log files after the error occurs?
  13. After suppressing, is there any texture that isn't correctly loaded in?
  14. I'm pretty sure not. As far as I know that throws a different error.
  15. I used the A27 release candidate, but have also (successfully) tested it on the latest development version.
  16. What happens when you press 'suppress'?
  17. Does everyone get this error? I was able to reproduce it only once, it seems like an issue with the PNG decoder. Have you tried simply reopening the game? And pressing 'suppress' should enable you to resume the game anyway. Good point. The dropdown is an instance of the same class responsible for the civilization selection dropdowns everywhere else in the game (like above the structure tree). And actually, I intentionally hid the automatically created "Civilization:" text. I thought the dropdown was self-explanatory with the context. So, how about showing "Choose you civilization:", but only as long as no civilization is selected? I agree. And adding images inline images is already possible with the TextRenderer by using tags. Plus, I implemented a feature to add "title images" above the articles (where we could show the portraits). The only problems with it I see are: Firstly, I'm not sure where to place it on the page, there's not much free space. Secondly, we don't have images for every article and many articles do not primarily describe one unit or building, I'm afraid some portraits would fail to thematically fit with the texts themselves. Yes, I am aware of that. I tried keeping it in mind while building the page, but I'm pretty sure there will still be some issues of overlapping UI elements on smaller screen sizes. But that won't be very hard to fix. The navigation history is stored in a simple array, so it probably won't cause issues over short periods of time. But I will test it. And I suppose the best solution would probably be to to limit its length to (let's say) 20. (Meaning you can't go back more than 20 times)
  18. Good news! I have finished encyclopedia GUI page! Functionality has barely changed, but I designed the UI and layout of the page. This included creating various fonts, ornaments, and a lettering as well as multiple new looks for scrollbars, dropdowns, buttons, and much more. Here is a short showcase: screen-recording.mp4 I updated the GitHub repo if anyone's interested in the code and also created a mod for everyone to try out and use, please let me know what you think. Nothing is carved in stone; I'm open to feedback or suggestions. 0 A.D.'s Encyclopedia.zip
  19. Here you go:https://github.com/JustusAvramenko/delenda_est/pull/64
  20. Yes, mods can easily pause the game. @wowgetoffyourcellphone the commands are g_PauseControl.implicitPause() and g_PauseControl.implicitResume() (if you want to pause the game in singleplayer only) I can open a quick pull request if you want.
  21. Ok, considering the mentioned use cases, stopping the button from getting disabled when the game ends seems like the way to go. Here is the ticket: https://trac.wildfiregames.com/ticket/6926#ticket
  22. Is that the desired behaviour? I want to open a ticket and maybe make a patch for it.
  23. The Han stable The current name is a literal translation of the word "stable" into Chinese. The Han practiced horse breeding to a large extent in designated breeding stations (mainly along the northern border). As far as I found out, there was no unique proper name for these horse keeping facilities, however, they weren't "stables" at all, more like wide open ranches. Instead, they were most frequently referred to with the word "苑Yuàn" ("garden") or "马苑 Mǎ Yuàn" ("horse garden"). I suggest this change: Mǎ Jiù -> Mǎ Yuàn Sources:
  24. If we cut off the ability for winning players to flare, then we should do the same for players without any teammates to see the flares.
  25. The bug occurs (not when you've lost but) when you've won, at which point you're still a player (not an observer). And in that case, you should be able to still send flares and the button should not be disabled, right?
×
×
  • Create New...