Skip to content

Commit b8e4fc5

Browse files
committed
Minor Changes 2.1 Release
- ini file gets randomized now - gives credit to all skins used in the randomized skin "MIXED-SKINS-CREDITS.txt"
1 parent c06eb5a commit b8e4fc5

File tree

12 files changed

+537
-32
lines changed

12 files changed

+537
-32
lines changed
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
[General]
2+
Name:
3+
Author:
4+
Version:
5+
AnimationFramerate:
6+
AllowSliderBallTint:
7+
ComboBurstRandom:
8+
CursorCentre:
9+
CursorExpand:
10+
CursorRotate:
11+
CursorTrailRotate:
12+
CustomComboBurstSounds:
13+
LayeredHitSounds:
14+
SilderBallFlip:
15+
SliderBallFrames:
16+
SliderStyle:
17+
SpinnerFadePlayfield:
18+
SpinnerFrequenceModulate:
19+
SpinnerNoBlink:
20+
[Colours]
21+
Combo1:
22+
Combo2:
23+
Combo3:
24+
Combo4:
25+
Combo5:
26+
Combo6:
27+
Combo7:
28+
Combo8:
29+
InputOverlayText:
30+
MenuGlow:
31+
SliderBall:
32+
SliderBorders:
33+
SliderTrackOverride:
34+
SongSelecteActiveText:
35+
SongSelectInactiveText:
36+
SpinnerBackground:
37+
StarBreakAdditive:
38+
[Fonts]
39+
HitCirclePrefix:
40+
HitCircleOverlap:
41+
ScorePrefix:
42+
ScoreOverlap:
43+
ComboPrefix:
44+
ComboOverlap:
45+
[CatchTheBeat]
46+
HyperDash:
47+
HyperDashFruit:
48+
HyperDashAfterImage:
49+
[Mania]
50+
Keys:
51+
ColumnStart:
52+
ColumnRight:
53+
ColumnSpacing:
54+
ColumnWidth:
55+
ColumnLineWidth:
56+
BarlineHeight:
57+
LightingNWidth:
58+
LightingLWidth:
59+
WidthForNoteHeightScale:
60+
HitPosition:
61+
LightPosition:
62+
ScorePosition:
63+
ComboPosition:
64+
JudgementLine:
65+
LightFramePerSecond:
66+
SpecialStyle:
67+
ComboBurstStyle:
68+
SplitStages:
69+
StageSeperation:
70+
SeperateScore:
71+
KeyUnderNotes:
72+
UpsideDown:
73+
KeyFlipWhenUpsideDown:
74+
KeyFlipWhenUpsideDown#:
75+
NoteFlipWhenUpsideDown:
76+
KeyFlipWhenUpsideDown#D:
77+
NoteFlipWhenUpsideDown#:
78+
NoteFlipWhenUpsideDown#L:
79+
NoteFlipWhenUpsideDown#T:
80+
NoteBodyStyle:
81+
NoteBodyStyle#:
82+
Colour#:
83+
ColourLight#:
84+
ColourColumnLine:
85+
ColourBarline:
86+
ColourJudgementLine:
87+
ColourKeyWarning:
88+
ColourHold:
89+
ColourBreak:
90+
KeyImage#:
91+
KeyImage#D:
92+
NoteImage#L:
93+
NoteImage#T:
94+
StageLeft:
95+
StageRight:
96+
StageBottom:
97+
StageHint:
98+
StageLight:
99+
LightingN:
100+
LightingL:
101+
WarningArrow:
102+
Hit0:
103+
Hit50:
104+
Hit100:
105+
Hit200:
106+
Hit300:
107+
Hit300g:

OsuSkinRandomizer/SkinRandomizer/Assets/SkinnableData/baseDataSkinnables.base

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ inputoverlay-background.png
9797
inputoverlay-background@2x.png
9898
inputoverlay-key.png
9999
inputoverlay-key@2x.png
100-
LICENCE.txt
101100
lighting.png
102101
lighting@2x.png
103102
mania-hit0.png
@@ -386,7 +385,6 @@ selection-selectoptions-over.png
386385
selection-selectoptions-over@2x.png
387386
selection-selectoptions.png
388387
selection-selectoptions@2x.png
389-
skin.ini
390388
sliderb0.png
391389
sliderb0@2x.png
392390
sliderb1.png

OsuSkinRandomizer/SkinRandomizer/Logic/BaseDataCreator.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,9 @@ public class BaseDataCreator
1010
{
1111
List<string> filenamesWithExtensions = new List<string>();
1212

13-
public void StartReading()
13+
public void StartReading(string path)
1414
{
15-
string path = @"D:\Spiele\osu!\Skins\Template";
16-
17-
18-
1915
filenamesWithExtensions = System.IO.Directory.GetFiles(path).ToList();
20-
21-
22-
23-
2416
}
2517

2618

@@ -40,5 +32,13 @@ public void CreateBaseDataFile()
4032
System.IO.File.WriteAllText(filename, fileContent);
4133

4234
}
35+
36+
public void ConvertINI(string path)
37+
{
38+
string filename = "baseDataSkinINI.base";
39+
40+
System.IO.File.Copy(path, filename);
41+
42+
}
4343
}
4444
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace SkinRandomizer.Logic
8+
{
9+
public class CreditGiver
10+
{
11+
private string applicationVersion = "";
12+
private string ResultSkinPath = "";
13+
public List<string> creditAuthors = new List<string>();
14+
15+
public CreditGiver(List<string> authors, string version, string resultSkinFolder)
16+
{
17+
applicationVersion = version;
18+
creditAuthors = authors;
19+
ResultSkinPath = resultSkinFolder;
20+
}
21+
22+
public void AddMoreauthors(List<string> authors)
23+
{
24+
creditAuthors.AddRange(authors);
25+
}
26+
27+
public void CreateCreditsFile()
28+
{
29+
// give proper credit to the actual guys who made the original skins :)
30+
31+
string creditContent = "THIS SKIN WAS MADE WITH THE OSUSKINRANDOMIZER V" + applicationVersion + System.Environment.NewLine +
32+
"THE RANDOMIZING PROCESS CHOSE THE FOLLOWING SKINS:" + System.Environment.NewLine;
33+
foreach (var credit in creditAuthors)
34+
{
35+
creditContent = creditContent + credit + System.Environment.NewLine;
36+
}
37+
38+
creditContent = creditContent + System.Environment.NewLine + "PLEASE PROVIDE THIS FILE WHEN YOU ARE SHARING THE SKIN! KEEP IND MIND THAT MIXED SKINS ARE NOT ALLOWED TO BE POSTED IN THE OSU SKINNING FORUM! HAPPY RANDOMIZING!";
39+
40+
System.IO.File.WriteAllText(ResultSkinPath + "\\MIXED-SKINS-CREDITS.txt", creditContent);
41+
}
42+
43+
}
44+
}

OsuSkinRandomizer/SkinRandomizer/Logic/Generators/TotalRandomGenerator.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ namespace SkinRandomizer.Logic.Generators
1212
{
1313
public class TotalRandomGenerator : BaseGenerator
1414
{
15+
private List<string> credit = new List<string>();
16+
17+
public List<string> GetCredits()
18+
{
19+
return credit;
20+
}
21+
1522
/// <summary>
1623
/// TotalRandomGenerator creates a playable skin, which sticks to a list of skinnable elements and searches for these, so they skin elements align
1724
/// </summary>

0 commit comments

Comments
 (0)