Skip to content

Commit e9aa15a

Browse files
committed
Winter Update (Part 2)
Version Bump to 1.0.1.2a
1 parent 45e4c59 commit e9aa15a

36 files changed

+97
-45
lines changed
1.56 KB
Loading
-1.45 KB
Binary file not shown.
-1.49 KB
Binary file not shown.
2.8 KB
Loading
Binary file not shown.
Binary file not shown.
2.77 KB
Loading
-2.23 KB
Binary file not shown.
Binary file not shown.
7.8 KB
Loading
-8.42 KB
Binary file not shown.
-9.17 KB
Binary file not shown.
-33 Bytes
Loading
-6.74 KB
Loading
Binary file not shown.
12.1 KB
Loading

alpha-kbx/Global Ovceptor.lua

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
-- I just realized that I'd rather have the letters be part of the receptors to make it match more to the games I play.
2+
3+
local sButton = Var "Button"
4+
local sGameButton = INPUTFILTER:GameButtonToKeyMapped(Var "GameButton", Var "Player")
5+
sGameButton = string.gsub(sGameButton, "Key", "")
6+
7+
local Buttons = {}
8+
9+
if not PREFSMAN:GetPreference("UseOldJoystickMapping") and string.find(sGameButton, "Joy") then
10+
sGameButton = string.gsub(sGameButton, "Joy.+_", "")
11+
Buttons = Def.Sprite {
12+
Texture=NOTESKIN:GetPath("Key","Buttons/"..sGameButton),
13+
Text=sGameButton,
14+
OnCommand=function(self) self:x(0):zoom(1) end,
15+
ReverseOnCommand=function(self) self:y(28):valign(0) end,
16+
ReverseOffCommand=function(self) self:y(-28):valign(1) end
17+
}
18+
else
19+
sGameButton = string.gsub(sGameButton, "Joy.+ ", "B")
20+
Buttons = Def.BitmapText {
21+
Font="_open sans semibold 24px",
22+
Text=sGameButton,
23+
OnCommand=function(self) self:LoadFromFont(NOTESKIN:GetPath("Key","Font/".."_league spartan Bold 24px.ini")) self:x(0):zoom(0.75) end,
24+
ReverseOnCommand=function(self) self:y(60):valign(0) end,
25+
ReverseOffCommand=function(self) self:y(-60):valign(1) end
26+
}
27+
end
28+
29+
return Def.ActorFrame {
30+
31+
-- Ovceptor Body
32+
Def.Quad {
33+
InitCommand=function(self) self:scaletoclipped(64,64) end,
34+
ReverseOnCommand=function(self) self:y(32):valign(0):diffuse(0.125,0.125,0.125,0.5):diffusebottomedge(0.25,0.25,0.25,0.5) end,
35+
ReverseOffCommand=function(self) self:y(-32):valign(1):diffuse(0.25,0.25,0.25,0.5):diffusebottomedge(0.125,0.125,0.125,0.5) end
36+
};
37+
38+
-- Ovceptor Top Line
39+
Def.Quad {
40+
InitCommand=function(self) self:scaletoclipped(64,1):diffuse(1,1,1,0.25) end,
41+
ReverseOnCommand=function(self) self:y(32):valign(0) end,
42+
ReverseOffCommand=function(self) self:y(-32):valign(1) end
43+
};
44+
45+
-- Ovceptor Bottom Line
46+
Def.Quad {
47+
InitCommand=function(self) self:scaletoclipped(64,1):diffuse(1,1,1,0.25) end,
48+
ReverseOnCommand=function(self) self:y(96):valign(0) end,
49+
ReverseOffCommand=function(self) self:y(-96):valign(1) end
50+
};
51+
52+
-- Press Flash
53+
Def.Quad {
54+
OnCommand=function(self) self:scaletoclipped(64,64):diffuse(0,0.75,1,0) end,
55+
ReverseOnCommand=function(self) self:y(32):valign(0):fadetop(0.75) end,
56+
ReverseOffCommand=function(self) self:y(-32):valign(1):fadebottom(0.75) end,
57+
PressCommand=function(self) self:diffusealpha(0.5) end,
58+
LiftCommand=function(self) self:stoptweening():linear(0.2):diffusealpha(0) end
59+
},
60+
Buttons
61+
}

alpha-kbx/Global Receptor.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ return Def.ActorFrame {
3636
Def.Quad {
3737
InitCommand=function(self) self:x(0):diffuse(0,0,0,0.75):scaletoclipped(64,192) end,
3838
ReverseOnCommand=function(self) self:fadetop(0.25):fadebottom(0.0625) end,
39-
ReverseOffCommand=function(self) self:fadebottom(0.25)fadetop(0.0625) end
39+
ReverseOffCommand=function(self) self:fadebottom(0.25):fadetop(0.0625) end
4040
},
4141
-- Background Left Line
4242
Def.Quad {
@@ -76,11 +76,5 @@ return Def.ActorFrame {
7676
ReverseOnCommand=function(self) self:y(96):valign(1):fadetop(1):fadebottom(0.0625) end,
7777
ReverseOffCommand=function(self) self:y(-96):valign(0):fadetop(0.0625):fadebottom(1) end
7878
},
79-
-- Lane Inner FLASH
80-
Def.Quad {
81-
InitCommand=function(self) self:diffuse(0,1,1,0.25):scaletoclipped(64,18):diffusealpha(0) end,
82-
PressCommand=function(self) self:diffusealpha(0.5) end,
83-
LiftCommand=function(self) self:stoptweening():linear(0.2):diffusealpha(0) end,
84-
},
8579
Buttons
8680
}

alpha-kbx/NoteSkin.lua

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ local Nskin = {}
66
-- Do remember this will redirect all the files of that direction to the direction its pointed to
77
Nskin.ButtonRedir =
88
{
9-
-- Still wondering how I can optimize this for even-numbered layouts. Will fix later.
109
Key1 = "White";
1110
Key2 = "Blue";
1211
Key3 = "White";
@@ -28,39 +27,46 @@ Nskin.ButtonRedir =
2827
Key19 = "White";
2928
}
3029

31-
32-
-- [2.] Rotation
33-
-- Define the parts to be rotated at which degree
34-
-- Why am I doing this
35-
Nskin.Rotate = {}
36-
37-
-- [3.] Element Redirects
30+
-- [2.] Element Redirects
3831
-- Define elements that need to be redirected
39-
4032
Nskin.ElementRedir =
4133
{
4234
["Tap Fake"] = "Tap Note",
4335
["Hold Explosion"] = "Tap Explosion Dim",
4436
["Roll Explosion"] = "Tap Explosion Dim",
37+
38+
["Hold Body Active"] = "Hold Body",
39+
["Hold Body Inactive"] = "Hold Body",
40+
["Roll Body Active"] = "Roll Body",
41+
["Roll Body Inactive"] = "Roll Body",
42+
4543
["Hold Head Active"] = "Tap Note",
4644
["Roll Head Active"] = "Tap Note",
4745
["Hold Head Inactive"] = "Tap Note",
4846
["Roll Head Inactive"] = "Tap Note",
49-
["Roll Topcap Active"] = "Hold Topcap Active",
50-
["Roll Topcap Inactive"] = "Hold Topcap Inactive",
51-
["Roll Bottomcap Active"] = "Hold Bottomcap Active",
52-
["Roll Bottomcap Inactive"] = "Hold Bottomcap Inactive",
47+
48+
["Hold Topcap Active"] = "Hold Topcap",
49+
["Hold Topcap Inactive"] = "Hold Topcap",
50+
["Hold Bottomcap Active"] = "Hold Bottomcap",
51+
["Hold Bottomcap Inactive"] = "Hold Bottomcap",
52+
53+
["Roll Topcap Active"] = "Hold Topcap",
54+
["Roll Topcap Inactive"] = "Hold Topcap",
55+
["Roll Bottomcap Active"] = "Hold Bottomcap",
56+
["Roll Bottomcap Inactive"] = "Hold Bottomcap",
57+
5358
["Hold LiftTail Active"] = "Tap Note",
5459
["Hold LiftTail Inactive"] = "Tap Note",
5560
["Roll LiftTail Active"] = "Tap Note",
5661
["Roll LiftTail Inactive"] = "Tap Note",
5762

5863
}
5964

65+
-- [3.] Element Rotations
66+
-- Parts of noteskins which we want to rotate, which are none.
6067
Nskin.PartsToRotate = {}
6168

62-
63-
-- [5.] Blank Redirects
69+
-- [4.] Blank Redirects
6470
-- Parts that should be Redirected to _Blank.png
6571
-- you can add/remove stuff if you want
6672
Nskin.Blank =
@@ -71,45 +77,37 @@ Nskin.Blank =
7177
["Roll Tail Inactive"] = true,
7278
}
7379

74-
-- [6.] Buttons and Elements
80+
-- [5.] Buttons and Elements
7581
-- Between here we usally put all the commands the noteskin.lua needs to do, some are extern in other files
7682
-- If you need help with lua go to https://quietly-turning.github.io/Lua-For-SM5/Luadoc/Lua.xml there are a bunch of codes there
7783
-- Also check out common it has a load of lua codes in files there
7884
-- Just play a bit with lua its not that hard if you understand coding
7985
-- But SM can be a bum in some cases, and some codes jut wont work if you dont have the noteskin on FallbackNoteSkin=common in the metric.ini
80-
8186
function Nskin.Load()
8287
local sButton = Var "Button"
8388
local sElement = Var "Element"
8489

85-
-- [6a.] Global Elements
86-
-- This is where arguments related to all gametypes are covered.
87-
8890
-- Setting global button
8991
local Button = Nskin.ButtonRedir[sButton] or "White"
90-
92+
9193
-- Setting global element
9294
local Element = Nskin.ElementRedir[sElement] or sElement
9395

94-
95-
-- Elements shared across all buttons must fall back to one direction.
96-
-- If you'll use Ovceptor Elements, don't forget to add the string below to make sure it's rendered.
96+
-- Making certain elements point to Global
9797
if string.find(Element, "Tap Explosion") or
9898
string.find(Element, "Receptor") or
9999
string.find(Element, "Tap Lift") or
100100
string.find(Element, "Mine") then
101101
Button = "Global"
102102
end
103103

104-
-- things don't play nicely
104+
-- Doing this so things play nicely
105105
if string.find(Element, "Explosion") and
106106
string.find(Element, "Rays") then
107107
Button = "Global"
108108
end
109109

110-
-- [6b.] Others
111110
-- Returning first part of the code, the redirects, Second part is for commands
112-
113111
local t = LoadActor(NOTESKIN:GetPath(Button,Element))
114112

115113
-- Set blank redirects
1.49 KB
Loading
-1.27 KB
Binary file not shown.
Binary file not shown.
2.64 KB
Loading
Binary file not shown.
Binary file not shown.
2.52 KB
Loading
Binary file not shown.
Binary file not shown.
8.17 KB
Loading
-6.11 KB
Binary file not shown.
Binary file not shown.

alpha-kbx/[Readme].txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
A simple, sharp, geometric noteskin specifically designed for KBX.
55

66
[Updates]
7-
- 1.0.1.1e, 12/18/2022
8-
--- Receptor Change yet again
9-
--- Styling changes
7+
- 1.0.1.2a (December 28, 2022)
8+
- Finalized visual overhaul of receptors.
9+
- Adjusted hold graphics for better visibility.
10+
- Fixed Mine graphics renders as not to make them look broken.
1011

11-
- 1.0.1 ??/06/2022
12-
--- Receptor Style updated.
13-
14-
[Notes]
15-
- Certain Themes may mask the parts of the receptor when scroll direction is set upwards.
12+
[To-Do]
13+
- Squash some hold explosion bugs.
14+
- Panic over roll body styling.
1615

1716
[Software]
18-
- Made with GIMP, Inkscape, and love. FOSS FTW.
17+
- Made with Inkscape and love. FOSS FTW.
1918

2019
[Sources and Credits]
2120
- Code based from Lirodon's broadhead and glider, and the default KBX noteskin.
-3.53 KB
Loading
-1.14 KB
Loading
2.11 KB
Loading

alpha-kbx/metrics.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ HoldBottomCapAnimationLength=1
1515
HoldBodyAnimationLength=1
1616
HoldTailAnimationLength=1
1717

18-
StartDrawingHoldBodyOffsetFromHead=0
19-
StopDrawingHoldBodyOffsetFromTail=0
18+
StartDrawingHoldBodyOffsetFromHead=1 // pixel adjustment
19+
StopDrawingHoldBodyOffsetFromTail=1 // pixel adjustment
2020

2121
HoldLetGoGrayPercent=.25
2222

0 commit comments

Comments
 (0)