1
0
mirror of synced 2024-11-30 18:24:32 +01:00

Minor adjustments (#700)

* Correctly scale mini display for videos on >720p skins

* Stop drawing tower floor count on song select for now

* nvm i fixed it

* allow diff number to be positioned for tower/dan

* adjust OWM assets

* Correctly scale screenshots to intended size

* Do not rescale window when skin changes

* actually nevermind this looks better in white

* new skin ver 😃

* wait hang on i'm dumb
This commit is contained in:
DragonRatTiger / リュウコ 2024-10-15 03:52:27 -05:00 committed by GitHub
parent 6df8bad11e
commit f532144205
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 26 additions and 12 deletions

View File

@ -176,7 +176,10 @@ namespace SampleFramework {
using SKBitmap sKBitmap = new(ViewportWidth, ViewportHeight - 1);
sKBitmap.SetPixels((IntPtr)pixels2);
action(sKBitmap);
using SKBitmap scaledBitmap = new(GameWindowSize.Width, GameWindowSize.Height);
if (sKBitmap.ScalePixels(scaledBitmap, SKFilterQuality.High)) action(scaledBitmap);
else action(sKBitmap);
}
});
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 KiB

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 KiB

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,6 +1,6 @@
;Skin information
Name=Open-World Memories
Version=0.6.0
Version=0.6.0.1
Creator=DashyDesu
Resolution=1920,1080
FontNameEN=Fonts/MPLUSRounded1c-Medium.ttf

View File

@ -24,7 +24,7 @@ SongSelect_Frame_Score_Y=530,587,645,703
SongSelect_Level_Number_X=1353,1353,1353,1353
SongSelect_Level_Number_Y=540,597,655,713
SongSelect_Level_Number_Tower=1337,697
SongSelect_Tower_Side=1324,622
SongSelect_Tower_Side=1303,587
SongSelect_Level_Number_Interval=13,0
SongSelect_Preimage=1413,292
@ -101,8 +101,8 @@ SongSelect_Branch_Offset=6,6
; == DONE
SongSelect_FloorNum_Show=1
SongSelect_FloorNum_X=1800
SongSelect_FloorNum_Y=307
SongSelect_FloorNum_X=1338
SongSelect_FloorNum_Y=684
SongSelect_FloorNum_Interval=45,0
SongSelect_DanInfo_Show=1
SongSelect_DanInfo_Icon_X=1501,1501,1501

View File

@ -2455,15 +2455,25 @@ namespace OpenTaiko {
}
case "SongSelect_Difficulty_Number_X": {
string[] strSplit = strParam.Split(',');
for (int i = 0; i < 5; i++) {
int max = Math.Min(strSplit.Length, 7);
for (int i = 0; i < max; i++) {
SongSelect_Difficulty_Number_X[i] = int.Parse(strSplit[i]);
if (i == 4) {
SongSelect_Difficulty_Number_X[5] = SongSelect_Difficulty_Number_X[i];
SongSelect_Difficulty_Number_X[6] = SongSelect_Difficulty_Number_X[i];
}
}
break;
}
case "SongSelect_Difficulty_Number_Y": {
string[] strSplit = strParam.Split(',');
for (int i = 0; i < 5; i++) {
int max = Math.Min(strSplit.Length, 7);
for (int i = 0; i < max; i++) {
SongSelect_Difficulty_Number_Y[i] = int.Parse(strSplit[i]);
if (i == 4) {
SongSelect_Difficulty_Number_Y[5] = SongSelect_Difficulty_Number_Y[i];
SongSelect_Difficulty_Number_Y[6] = SongSelect_Difficulty_Number_Y[i];
}
}
break;
}
@ -8098,8 +8108,8 @@ namespace OpenTaiko {
public int[] SongSelect_Difficulty_Star_Y = new int[] { 459, 459, 459, 459, 459 };
public int[] SongSelect_Difficulty_Star_Interval = new int[] { 10, 0 };
public int[] SongSelect_Difficulty_Number_X = new int[] { 498, 641, 784, 927, 927 };
public int[] SongSelect_Difficulty_Number_Y = new int[] { 435, 435, 435, 435, 435 };
public int[] SongSelect_Difficulty_Number_X = new int[] { 498, 641, 784, 927, 927, 927, 927 };
public int[] SongSelect_Difficulty_Number_Y = new int[] { 435, 435, 435, 435, 435, 435, 435 };
public int[] SongSelect_Difficulty_Number_Interval = new int[] { 11, 0 };
public int[][] SongSelect_Difficulty_Crown_X = new int[][] {

View File

@ -2879,7 +2879,7 @@ for (int i = 0; i < 3; i++) {
GameWindowSize.Width = nWidth;
GameWindowSize.Height = nHeight;
WindowSize = new Silk.NET.Maths.Vector2D<int>(nWidth, nHeight);
//WindowSize = new Silk.NET.Maths.Vector2D<int>(nWidth, nHeight);
}
public void RefreshSkin() {

View File

@ -40,7 +40,8 @@ namespace OpenTaiko {
}
public override int Draw() {
tFloorNumberDraw(OpenTaiko.Skin.SongSelect_FloorNum_X, OpenTaiko.Skin.SongSelect_FloorNum_Y, OpenTaiko.stageSongSelect.rNowSelectedSong.nTotalFloor);
if (OpenTaiko.stageSongSelect.rNowSelectedSong.arスコア[5] != null)
tFloorNumberDraw(OpenTaiko.Skin.SongSelect_FloorNum_X, OpenTaiko.Skin.SongSelect_FloorNum_Y, OpenTaiko.stageSongSelect.rNowSelectedSong.arスコア[5]..nTotalFloor);
return 0;
}

View File

@ -48,7 +48,7 @@ namespace OpenTaiko {
if (this.rVD == null || this.tx描画用 == null || !OpenTaiko.ConfigIni.eClipDispType.HasFlag(EClipDispType.))
return;
float[] fRatio = new float[] { 640.0f - 4.0f, 360.0f - 4.0f }; //中央下表示
float[] fRatio = new float[] { (SampleFramework.GameWindowSize.Width / 2) - 4.0f, (SampleFramework.GameWindowSize.Height / 2) - 4.0f }; //中央下表示
float ratio = Math.Min((float)(fRatio[0] / this.rVD.FrameSize.Width), (float)(fRatio[1] / this.rVD.FrameSize.Height));
this.tx描画用.vcScaleRatio.X = ratio;