Change F3 rendering and add git version information#836
Change F3 rendering and add git version information#836codeHusky merged 11 commits intosmartcmd:mainfrom
Conversation
|
Would it be possible to add word wrapping, so stuff that doesn't fit just goes into the next line? |
We could but looking at how the structure list works it could loop forever and end up with alot of lines just for 1 feature type |
|
@rtm516 consider removing Stronghold, Mineshaft, etc. lines because they are too cheaty. |
|
Please don't touch the version yet, we still haven't decided with the versioning system for the current repo. |
They are removed outside of debug builds, so in release they wont show up |
@void2012 I'm just replacing |
|
Considering it’s just the git hash I think this is reasonable enough, we can add to this or change it up once we switch off nightly and move to a real versioning system IMO. Though, it shouldn’t ever be “unknown” and if you’re building with uncommitted file changes it should be something like hash-DEV |
|
Compiling creates an unstaged difference with this code right now, adding -dev if you compile in VS without actually changing any files. This file should be restored after the compile's done |
2e8363c to
2b207d8
Compare
* Change F3 rendering and add git version information * Change position, block, chunk and facing * Limit position decimal places * Move LCE unique to the bottom and add more java features * Fix chunk information disappearing after y256 * Add chunk count information * Move build number script to prebuild.ps1 * We dont need to specify vector and wstring are from std * Restore build number to fix multiplayer * Use short symbolic-ref * Restore original BuildVer.h --------- Co-authored-by: Loki <lokio.casebstv@gmail.com> Co-authored-by: Loki Rautio <lokirautio@gmail.com>
* Change F3 rendering and add git version information * Change position, block, chunk and facing * Limit position decimal places * Move LCE unique to the bottom and add more java features * Fix chunk information disappearing after y256 * Add chunk count information * Move build number script to prebuild.ps1 * We dont need to specify vector and wstring are from std * Restore build number to fix multiplayer * Use short symbolic-ref * Restore original BuildVer.h --------- Co-authored-by: Loki <lokio.casebstv@gmail.com> Co-authored-by: Loki Rautio <lokirautio@gmail.com>
Description
Changes how we build the F3 screen and also embeds the git version information at build time.
This also moves the FPS, position and a few other lines to look more like java
Changes
Previous Behavior
F3 was created using a few different calls and lines were in hardcoded positions
New Behavior
F3 is much easier to add information to in future and re-arrange. Also added more lines to match java
Fix Implementation
We now add all the debug lines to a vector and then draw them all at the end
AI Use Disclosure
None was used
Related Issues