mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #5 - Fixed edit book screen not showing text
This commit is contained in:
@ -130,6 +130,18 @@
|
||||
|
||||
~ int i1 = "0123456789abcdefklmnor".indexOf(Character.toLowerCase(parString1.charAt(i + 1)));
|
||||
|
||||
> CHANGE 418 : 419 @ 404 : 405
|
||||
|
||||
~ private int renderStringAligned(String text, int x, int y, int wrapWidth, int color, boolean parFlag) {
|
||||
|
||||
> CHANGE 421 : 422 @ 407 : 408
|
||||
|
||||
~ x = x + wrapWidth - i;
|
||||
|
||||
> CHANGE 424 : 425 @ 410 : 411
|
||||
|
||||
~ return this.renderString(text, (float) x, (float) y, color, parFlag);
|
||||
|
||||
> CHANGE 429 : 431 @ 415 : 416
|
||||
|
||||
~ this.posX = x;
|
||||
@ -141,18 +153,24 @@
|
||||
|
||||
+ return (int) this.posX;
|
||||
|
||||
> CHANGE 603 : 604 @ 588 : 589
|
||||
> INSERT 573 : 576 @ 558
|
||||
|
||||
+ if ((textColor & -67108864) == 0) {
|
||||
+ textColor |= -16777216;
|
||||
+ }
|
||||
|
||||
> CHANGE 606 : 607 @ 588 : 589
|
||||
|
||||
~ return Arrays.asList(this.wrapFormattedStringToWidth(str, wrapWidth, 0).split("\n"));
|
||||
|
||||
> CHANGE 606 : 610 @ 591 : 592
|
||||
> CHANGE 609 : 613 @ 591 : 592
|
||||
|
||||
~ String wrapFormattedStringToWidth(String str, int wrapWidth, int depthCheck) { // TODO: fix recursive
|
||||
~ if (depthCheck > 20) {
|
||||
~ return str;
|
||||
~ }
|
||||
|
||||
> CHANGE 618 : 619 @ 600 : 601
|
||||
> CHANGE 621 : 622 @ 600 : 601
|
||||
|
||||
~ return s + "\n" + this.wrapFormattedStringToWidth(s1, wrapWidth, ++depthCheck);
|
||||
|
||||
|
@ -28,15 +28,17 @@
|
||||
|
||||
~ protected void actionPerformed(GuiButton parGuiButton) {
|
||||
|
||||
> CHANGE 208 : 209 @ 209 : 210
|
||||
> CHANGE 208 : 209 @ 209 : 211
|
||||
|
||||
~ protected void keyTyped(char parChar1, int parInt1) {
|
||||
|
||||
> CHANGE 346 : 347 @ 347 : 348
|
||||
> DELETE 215 @ 217 : 218
|
||||
|
||||
> CHANGE 344 : 345 @ 347 : 348
|
||||
|
||||
~ } catch (JSONException var13) {
|
||||
|
||||
> CHANGE 381 : 382 @ 382 : 383
|
||||
> CHANGE 379 : 380 @ 382 : 383
|
||||
|
||||
~ protected void mouseClicked(int parInt1, int parInt2, int parInt3) {
|
||||
|
||||
|
Reference in New Issue
Block a user