From 423cf2e19f54bb489f4967cccbec0a873709a2c6 Mon Sep 17 00:00:00 2001 From: dudleycu Date: Tue, 17 Aug 2021 22:05:08 +0900 Subject: [PATCH] Added left and right button overlay function for skill tree --- src/TestPanel.js | 34 ++++++++++++++++++++++------------ src/style.css | 47 ++++++++++++++++++++++++++--------------------- 2 files changed, 48 insertions(+), 33 deletions(-) diff --git a/src/TestPanel.js b/src/TestPanel.js index 4f213a9..388ceaf 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -125,6 +125,16 @@ function SelectorWindow(p) { } +function LeftButton(p){ + return + +} + +function RightButton(p){ + return + +} + function GetSpecialWeaponName(item) { return item[WEAPON_EXISTENCE_DATA]!==undefined?(item[WEAPON_EXISTENCE_DATA].special_name?.length>0)?item[WEAPON_EXISTENCE_DATA].special_name:(item[WEAPON_WEAPON].name+" "+item[WEAPON_WEAPONTYPE].name):"" } @@ -538,18 +548,18 @@ AUGMENT skillLines={skillTreeData} halflineheight={halflineheight} />}
-
1/5Blight Rounds
-
 1/1Blight Rounds Reinforce
-
0/10Bad Condition Ward
-
0/1Spread Shot
-
 0/1Spread Shot Quick Getaway
-
0/10Bad Condition Reduction
-
0/1Rifle Grenadier
-
0/1Slide Shot Advance
-
0/1Sticky Bomb Quick Reload
-
0/1Launcher Charge Grouping
-
0/1Slow Landing Attack-Ranger
-
0/1Slow Landing Charge-Ranger
+
1/5Blight Rounds
+
 1/1Blight Rounds Reinforce
+
0/10Bad Condition Ward
+
0/1Spread Shot
+
 0/1Spread Shot Quick Getaway
+
0/10Bad Condition Reduction
+
0/1Rifle Grenadier
+
0/1Slide Shot Advance
+
0/1Sticky Bomb Quick Reload
+
0/1Launcher Charge Grouping
+
0/1Slow Landing Attack-Ranger
+
0/1Slow Landing Charge-Ranger
: <>} diff --git a/src/style.css b/src/style.css index f570bd9..53e0162 100644 --- a/src/style.css +++ b/src/style.css @@ -319,9 +319,6 @@ em { .equipAugs { flex: 1 1 auto; } -.equipAugs ul { - position: relative; -} .equipAugs li { background-color: rgba(128,128,128,0.50); color: white; @@ -354,9 +351,6 @@ em { white-space: normal; left: 1em; } -.tooltipAnchor { - position: relative; -} .xTooltip { margin: 0 10px 0 0; display: inline; @@ -726,34 +720,26 @@ li.treeListSub:after { "a5 b5 c5 d5 e5 f5" "a6 b6 c6 d6 e6 f6"; } -.skillTreeGrid div { +.skillTreeGrid > div { background-color: rgba(128,128,128,0.33); color: white; padding: 6px; - /*background-repeat: no-repeat; - background-position: right top; - background-origin: content-box;*/ text-align: center; height: 148px; position: relative; margin: 0 10px 96px 0; } -.skillTreeGrid div:hover .skillButtons { - visibility: visible; -} div.skillActive { background-color: rgba(18,103,87,0.5); } div.skillMaxed { background-color: rgba(18,103,87,0.5); } -.skillTreeGrid div:hover { +.skillTreeGrid > div:hover { outline: 2px solid rgba(54,255,255,0.66); background-color: rgba(113,169,189,0.33); - background-image: url("./icons/skilltree_div_overlay.png"); - background-repeat: no-repeat; } -.skillTreeGrid div.skillActive:hover, .skillTreeGrid div.skillMaxed:hover { +.skillTreeGrid > div.skillActive:hover, .skillTreeGrid > div.skillMaxed:hover { outline: 2px solid rgba(54,255,255,0.66); background-color: rgba(18,103,87,0.5); } @@ -771,7 +757,7 @@ div.skillLocked img, div.skillLocked span.skillAllocated, div.skillLocked em.ski line-height: 40px; } div.skillActive .skillAllocated { - color: rgb(255,255,0) + color: rgb(255,255,0); } div.skillMaxed .skillAllocated { color: rgb(255,135,80); @@ -807,7 +793,26 @@ div.skillMaxed .skillAllocated { height: 48px; text-align: left; } - +.skillButtons { +position:absolute; +display: grid; +grid-template-columns: repeat(2, 1fr); +width: 171px; +height: 148px; +left: 0; +top: 0; +cursor: pointer; +} +.skillButtons > span:hover { + background-image: url("./icons/skilltree_div_overlay.png"); + background-repeat: no-repeat; +} +.skillLeftButton { + background-position: left; +} +.skillRightButton { + background-position: right; +} .skillPoints { background-color: rgba(64,64,64,0.5); text-align: center; @@ -857,7 +862,7 @@ div.skillMaxed .skillAllocated { outline: 2px solid #30cdef; } .editBoxActive { - position: relative; + width: 100%; } .editBoxActive:hover { @@ -879,7 +884,7 @@ input#editBoxInput { width: 100%; } .editClass { - position: relative; + display: inline-block; width: 100%; }