@@ -91,23 +91,23 @@ public bool BossLogVisible {
91
91
if ( value ) {
92
92
Append ( BookArea ) ;
93
93
Append ( ToCTab ) ;
94
- Append ( CreditsTab ) ;
95
94
Append ( filterPanel ) ;
96
95
Append ( BossTab ) ;
97
96
Append ( MiniBossTab ) ;
98
97
Append ( EventTab ) ;
98
+ Append ( CreditsTab ) ;
99
99
Append ( PageOne ) ;
100
100
Append ( PageTwo ) ;
101
101
}
102
102
else {
103
- RemoveChild ( ToCTab ) ;
103
+ RemoveChild ( PageTwo ) ;
104
+ RemoveChild ( PageOne ) ;
104
105
RemoveChild ( CreditsTab ) ;
105
- RemoveChild ( filterPanel ) ;
106
- RemoveChild ( BossTab ) ;
107
- RemoveChild ( MiniBossTab ) ;
108
106
RemoveChild ( EventTab ) ;
109
- RemoveChild ( PageOne ) ;
110
- RemoveChild ( PageTwo ) ;
107
+ RemoveChild ( MiniBossTab ) ;
108
+ RemoveChild ( BossTab ) ;
109
+ RemoveChild ( filterPanel ) ;
110
+ RemoveChild ( ToCTab ) ;
111
111
RemoveChild ( BookArea ) ;
112
112
}
113
113
bossLogVisible = value ;
@@ -154,10 +154,10 @@ public override void OnInitialize() {
154
154
eventNavTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Nav_Event" ) ;
155
155
filterTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Nav_Filter" ) ;
156
156
157
- checkMarkTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_Check" ) ;
158
- xTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_X" ) ;
159
- circleTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_Next" ) ;
160
- checkboxTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_Box" ) ;
157
+ checkMarkTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_Check" , AssetRequestMode . ImmediateLoad ) ;
158
+ xTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_X" , AssetRequestMode . ImmediateLoad ) ;
159
+ circleTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_Next" , AssetRequestMode . ImmediateLoad ) ;
160
+ checkboxTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_Box" , AssetRequestMode . ImmediateLoad ) ;
161
161
chestTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_Chest" ) ;
162
162
starTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_Star" ) ;
163
163
goldChestTexture = ModContent . Request < Texture2D > ( "BossChecklist/Resources/Checks_GoldChest" ) ;
@@ -261,7 +261,7 @@ public override void OnInitialize() {
261
261
scrollTwo = new BossLogUIElements . FixedUIScrollbar ( ) ;
262
262
scrollTwo . SetView ( 100f , 1000f ) ;
263
263
scrollTwo . Top . Pixels = 50f ;
264
- scrollTwo . Left . Pixels = - 28 ;
264
+ scrollTwo . Left . Pixels = - 13 ;
265
265
scrollTwo . Height . Set ( - 24f , 0.75f ) ;
266
266
scrollTwo . HAlign = 1f ;
267
267
@@ -270,7 +270,7 @@ public override void OnInitialize() {
270
270
} ;
271
271
PageTwo . Width . Pixels = 375 ;
272
272
PageTwo . Height . Pixels = 480 ;
273
- PageTwo . Left . Pixels = ( Main . screenWidth / 2 ) - 400 + 800 - PageTwo . Width . Pixels ;
273
+ PageTwo . Left . Pixels = ( Main . screenWidth / 2 ) - 415 + 800 - PageTwo . Width . Pixels ;
274
274
PageTwo . Top . Pixels = ( Main . screenHeight / 2 ) - 250 + 12 ;
275
275
276
276
pageTwoItemList = new UIList ( ) ;
@@ -318,13 +318,13 @@ public override void OnInitialize() {
318
318
} ;
319
319
NextPage . Width . Pixels = 14 ;
320
320
NextPage . Height . Pixels = 20 ;
321
- NextPage . Left . Pixels = PageTwo . Width . Pixels - ( int ) ( NextPage . Width . Pixels * 3 ) ;
321
+ NextPage . Left . Pixels = PageTwo . Width . Pixels + 15 - ( int ) ( NextPage . Width . Pixels * 3 ) ;
322
322
NextPage . Top . Pixels = 416 ;
323
323
NextPage . OnClick += PageChangerClicked ;
324
324
PageTwo . Append ( NextPage ) ;
325
325
326
326
hardmodeList = new UIList ( ) ;
327
- hardmodeList . Left . Pixels = 4 ;
327
+ hardmodeList . Left . Pixels = 19 ;
328
328
hardmodeList . Top . Pixels = 44 ;
329
329
hardmodeList . Width . Pixels = PageOne . Width . Pixels - 60 ;
330
330
hardmodeList . Height . Pixels = PageOne . Height . Pixels - 136 ;
@@ -333,30 +333,30 @@ public override void OnInitialize() {
333
333
recordButton = new SubpageButton ( "Mods.BossChecklist.BossLog.DrawnText.Records" ) ;
334
334
recordButton . Width . Pixels = PageTwo . Width . Pixels / 2 - 24 ;
335
335
recordButton . Height . Pixels = 25 ;
336
- recordButton . Left . Pixels = 0 ;
336
+ recordButton . Left . Pixels = 15 ;
337
337
recordButton . Top . Pixels = 15 ;
338
338
recordButton . OnClick += ( a , b ) => UpdateSubPage ( 0 ) ;
339
339
recordButton . OnRightDoubleClick += ( a , b ) => ResetStats ( ) ;
340
340
341
341
spawnButton = new SubpageButton ( "Mods.BossChecklist.BossLog.DrawnText.SpawnInfo" ) ;
342
342
spawnButton . Width . Pixels = PageTwo . Width . Pixels / 2 - 24 ;
343
343
spawnButton . Height . Pixels = 25 ;
344
- spawnButton . Left . Pixels = PageTwo . Width . Pixels / 2 - 8 ;
344
+ spawnButton . Left . Pixels = PageTwo . Width . Pixels / 2 - 8 + 15 ;
345
345
spawnButton . Top . Pixels = 15 ;
346
346
spawnButton . OnClick += ( a , b ) => UpdateSubPage ( 1 ) ;
347
347
348
348
lootButton = new SubpageButton ( "Mods.BossChecklist.BossLog.DrawnText.LootCollect" ) ;
349
- lootButton . Width . Pixels = PageTwo . Width . Pixels / 2 - 24 ;
349
+ lootButton . Width . Pixels = PageTwo . Width . Pixels / 2 - 24 + 15 ;
350
350
lootButton . Height . Pixels = 25 ;
351
- lootButton . Left . Pixels = PageTwo . Width . Pixels / 2 - lootButton . Width . Pixels / 2 - 16 ;
351
+ lootButton . Left . Pixels = PageTwo . Width . Pixels / 2 - lootButton . Width . Pixels / 2 ;
352
352
lootButton . Top . Pixels = 50 ;
353
353
lootButton . OnClick += ( a , b ) => UpdateSubPage ( 2 ) ;
354
354
lootButton . OnRightDoubleClick += RemoveItem ;
355
355
356
356
toolTipButton = new SubpageButton ( "Disclaimer" ) ;
357
357
toolTipButton . Width . Pixels = 32 ;
358
358
toolTipButton . Height . Pixels = 32 ;
359
- toolTipButton . Left . Pixels = PageTwo . Width . Pixels - toolTipButton . Width . Pixels - 30 ;
359
+ toolTipButton . Left . Pixels = PageTwo . Width . Pixels - toolTipButton . Width . Pixels ;
360
360
toolTipButton . Top . Pixels = 100 ;
361
361
toolTipButton . OnClick += ( a , b ) => SwapRecordPage ( ) ;
362
362
@@ -375,7 +375,7 @@ public override void Update(GameTime gameTime) {
375
375
BookArea . Top . Pixels = ( Main . screenHeight / 2 ) - ( 478 / 2 ) - 6 ;
376
376
PageOne . Left . Pixels = ( Main . screenWidth / 2 ) - 400 + 20 ;
377
377
PageOne . Top . Pixels = ( Main . screenHeight / 2 ) - 250 + 12 ;
378
- PageTwo . Left . Pixels = ( Main . screenWidth / 2 ) - 400 + 800 - PageTwo . Width . Pixels ;
378
+ PageTwo . Left . Pixels = ( Main . screenWidth / 2 ) - 415 + 800 - PageTwo . Width . Pixels ;
379
379
PageTwo . Top . Pixels = ( Main . screenHeight / 2 ) - 250 + 12 ;
380
380
381
381
// Updating tabs to proper positions
@@ -768,15 +768,15 @@ private void OpenSpawn() {
768
768
message . Width . Set ( - 34f , 1f ) ;
769
769
message . Height . Set ( - 370f , 1f ) ;
770
770
message . Top . Set ( 85f , 0f ) ;
771
- message . Left . Set ( - 10f , 0f ) ;
771
+ message . Left . Set ( 5f , 0f ) ;
772
772
//message.PaddingRight = 30;
773
773
PageTwo . Append ( message ) ;
774
774
775
775
scrollTwo = new BossLogUIElements . FixedUIScrollbar ( ) ;
776
776
scrollTwo . SetView ( 100f , 1000f ) ;
777
777
scrollTwo . Top . Set ( 91f , 0f ) ;
778
778
scrollTwo . Height . Set ( - 382f , 1f ) ;
779
- scrollTwo . Left . Set ( - 20 , 0f ) ;
779
+ scrollTwo . Left . Set ( - 5 , 0f ) ;
780
780
scrollTwo . HAlign = 1f ;
781
781
PageTwo . Append ( scrollTwo ) ;
782
782
message . SetScrollbar ( scrollTwo ) ;
@@ -790,7 +790,7 @@ private void OpenSpawn() {
790
790
type = "Event" ;
791
791
}
792
792
UIText info = new UIText ( Language . GetTextValue ( $ "Mods.BossChecklist.BossLog.DrawnText.NoSpawn{ type } ") ) ;
793
- info . Left . Pixels = ( PageTwo . Width . Pixels / 2 ) - ( FontAssets . MouseText . Value . MeasureString ( info . Text ) . X / 2 ) - 20 ;
793
+ info . Left . Pixels = ( PageTwo . Width . Pixels / 2 ) - ( FontAssets . MouseText . Value . MeasureString ( info . Text ) . X / 2 ) - 5 ;
794
794
info . Top . Pixels = 300 ;
795
795
PageTwo . Append ( info ) ;
796
796
return ;
@@ -827,7 +827,7 @@ private void OpenSpawn() {
827
827
spawnItemSlot . Height . Pixels = 50 ;
828
828
spawnItemSlot . Width . Pixels = 50 ;
829
829
spawnItemSlot . Top . Pixels = 230 ;
830
- spawnItemSlot . Left . Pixels = 33 + ( 56 * 2 ) ;
830
+ spawnItemSlot . Left . Pixels = 48 + ( 56 * 2 ) ;
831
831
PageTwo . Append ( spawnItemSlot ) ;
832
832
833
833
int row = 0 ;
@@ -839,7 +839,7 @@ private void OpenSpawn() {
839
839
ingList . Height . Pixels = 50 ;
840
840
ingList . Width . Pixels = 50 ;
841
841
ingList . Top . Pixels = 240 + ( 48 * ( row + 1 ) ) ;
842
- ingList . Left . Pixels = 5 + ( 48 * col ) ;
842
+ ingList . Left . Pixels = 20 + ( 48 * col ) ;
843
843
PageTwo . Append ( ingList ) ;
844
844
col ++ ;
845
845
if ( k == 6 ) {
@@ -865,7 +865,7 @@ private void OpenSpawn() {
865
865
craftItem . Height . Pixels = 50 ;
866
866
craftItem . Width . Pixels = 50 ;
867
867
craftItem . Top . Pixels = 240 + ( 48 * ( row + 2 ) ) ;
868
- craftItem . Left . Pixels = 5 ;
868
+ craftItem . Left . Pixels = 20 ;
869
869
PageTwo . Append ( craftItem ) ;
870
870
}
871
871
else if ( requiredTiles . Count > 0 ) {
@@ -893,7 +893,7 @@ private void OpenSpawn() {
893
893
tileList . Height . Pixels = 50 ;
894
894
tileList . Width . Pixels = 50 ;
895
895
tileList . Top . Pixels = 240 + ( 48 * ( row + 2 ) ) ;
896
- tileList . Left . Pixels = 5 + ( 48 * l ) ;
896
+ tileList . Left . Pixels = 20 + ( 48 * l ) ;
897
897
PageTwo . Append ( tileList ) ;
898
898
}
899
899
}
@@ -903,7 +903,7 @@ private void OpenSpawn() {
903
903
Id = "PrevItem"
904
904
} ;
905
905
PrevItem . Top . Pixels = 245 ;
906
- PrevItem . Left . Pixels = 125 ;
906
+ PrevItem . Left . Pixels = 140 ;
907
907
PrevItem . Width . Pixels = 14 ;
908
908
PrevItem . Height . Pixels = 20 ;
909
909
PrevItem . OnClick += ChangeSpawnItem ;
@@ -915,7 +915,7 @@ private void OpenSpawn() {
915
915
Id = "NextItem"
916
916
} ;
917
917
NextItem . Top . Pixels = 245 ;
918
- NextItem . Left . Pixels = 203 ;
918
+ NextItem . Left . Pixels = 218 ;
919
919
NextItem . Width . Pixels = 14 ;
920
920
NextItem . Height . Pixels = 20 ;
921
921
NextItem . OnClick += ChangeSpawnItem ;
@@ -927,7 +927,7 @@ private void OpenSpawn() {
927
927
Id = "CycleItem_" + TotalRecipes
928
928
} ;
929
929
CycleItem . Top . Pixels = 245 ;
930
- CycleItem . Left . Pixels = 40 ;
930
+ CycleItem . Left . Pixels = 55 ;
931
931
CycleItem . Width . Pixels = 22 ;
932
932
CycleItem . Height . Pixels = 22 ;
933
933
CycleItem . OnClick += ChangeSpawnItem ;
@@ -940,7 +940,7 @@ private void OpenSpawn() {
940
940
}
941
941
942
942
UIText ModdedRecipe = new UIText ( recipeMessage , 0.8f ) ;
943
- ModdedRecipe . Left . Pixels = - 5 ;
943
+ ModdedRecipe . Left . Pixels = 10 ;
944
944
ModdedRecipe . Top . Pixels = 205 ;
945
945
PageTwo . Append ( ModdedRecipe ) ;
946
946
}
@@ -989,7 +989,7 @@ private void OpenLoot() {
989
989
} ;
990
990
lootTable . Height . Pixels = 50 ;
991
991
lootTable . Width . Pixels = 50 ;
992
- lootTable . Left . Pixels = ( col * 56 ) ;
992
+ lootTable . Left . Pixels = ( col * 56 ) + 15 ;
993
993
lootTable . OnRightDoubleClick += RemoveItem ;
994
994
newRow . Append ( lootTable ) ;
995
995
col ++ ;
@@ -1029,7 +1029,7 @@ private void OpenLoot() {
1029
1029
} ;
1030
1030
lootTable . Height . Pixels = 50 ;
1031
1031
lootTable . Width . Pixels = 50 ;
1032
- lootTable . Left . Pixels = ( col * 56 ) ;
1032
+ lootTable . Left . Pixels = ( col * 56 ) + 15 ;
1033
1033
lootTable . OnRightDoubleClick += RemoveItem ;
1034
1034
newRow . Append ( lootTable ) ;
1035
1035
col ++ ;
@@ -1097,7 +1097,7 @@ private void OpenCollect() {
1097
1097
} ;
1098
1098
collectionTable . Height . Pixels = 50 ;
1099
1099
collectionTable . Width . Pixels = 50 ;
1100
- collectionTable . Left . Pixels = ( 56 * ( col ) ) ;
1100
+ collectionTable . Left . Pixels = ( col * 56 ) + 15 ;
1101
1101
collectionTable . OnRightDoubleClick += RemoveItem ;
1102
1102
newRow . Append ( collectionTable ) ;
1103
1103
col ++ ;
@@ -1225,15 +1225,15 @@ private void UpdateCredits() {
1225
1225
}
1226
1226
}
1227
1227
1228
- pageTwoItemList . Left . Pixels = 15 ;
1228
+ pageTwoItemList . Left . Pixels = 30 ;
1229
1229
pageTwoItemList . Top . Pixels = 75 ;
1230
1230
pageTwoItemList . Width . Pixels = PageTwo . Width . Pixels - 66 ;
1231
1231
pageTwoItemList . Height . Pixels = PageTwo . Height . Pixels - 75 - 80 ;
1232
1232
pageTwoItemList . Clear ( ) ;
1233
1233
1234
1234
scrollTwo . SetView ( 10f , 1000f ) ;
1235
1235
scrollTwo . Top . Pixels = 90 ;
1236
- scrollTwo . Left . Pixels = - 24 ;
1236
+ scrollTwo . Left . Pixels = 5 ;
1237
1237
scrollTwo . Height . Set ( - 60f , 0.75f ) ;
1238
1238
scrollTwo . HAlign = 1f ;
1239
1239
@@ -1257,7 +1257,7 @@ private void UpdateCredits() {
1257
1257
brokenPanel . Height . Pixels = 220 ;
1258
1258
brokenPanel . Width . Pixels = 340 ;
1259
1259
brokenPanel . Top . Pixels = 120 ;
1260
- brokenPanel . Left . Pixels = 3 ;
1260
+ brokenPanel . Left . Pixels = 18 ;
1261
1261
PageTwo . Append ( brokenPanel ) ;
1262
1262
1263
1263
FittedTextPanel brokenDisplay = new FittedTextPanel ( Language . GetTextValue ( "Mods.BossChecklist.BossLog.DrawnText.NoModsSupported" ) ) ;
@@ -1315,7 +1315,7 @@ private void ResetBothPages() {
1315
1315
scrollTwo = new BossLogUIElements . FixedUIScrollbar ( ) ;
1316
1316
scrollTwo . SetView ( 100f , 1000f ) ;
1317
1317
scrollTwo . Top . Pixels = 50f ;
1318
- scrollTwo . Left . Pixels = - 28 ;
1318
+ scrollTwo . Left . Pixels = - 13 ;
1319
1319
scrollTwo . Height . Set ( - 24f , 0.75f ) ;
1320
1320
scrollTwo . HAlign = 1f ;
1321
1321
@@ -1380,7 +1380,7 @@ private void ResetPageButtons() {
1380
1380
toolTipButton = new SubpageButton ( "" ) ;
1381
1381
toolTipButton . Width . Pixels = 32 ;
1382
1382
toolTipButton . Height . Pixels = 32 ;
1383
- toolTipButton . Left . Pixels = PageTwo . Width . Pixels - toolTipButton . Width . Pixels - 30 ;
1383
+ toolTipButton . Left . Pixels = PageTwo . Width . Pixels - toolTipButton . Width . Pixels - 15 ;
1384
1384
toolTipButton . Top . Pixels = 86 ;
1385
1385
toolTipButton . OnClick += ( a , b ) => SwapRecordPage ( ) ;
1386
1386
PageTwo . Append ( toolTipButton ) ;
0 commit comments