added a bit of cost clarity

This commit is contained in:
Melbyj1125 2022-04-18 22:58:26 -05:00
parent 5144783b24
commit df99abcba7
5 changed files with 469 additions and 558 deletions

File diff suppressed because it is too large Load Diff

View File

@ -682,78 +682,6 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: glider
value:
objectReference: {fileID: 1557924177}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: leftLeg
value:
objectReference: {fileID: 830458338}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: leftFoot
value:
objectReference: {fileID: 1412069676}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: leftQuad
value:
objectReference: {fileID: 1964031227}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: rightLeg
value:
objectReference: {fileID: 1981709688}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: rightFoot
value:
objectReference: {fileID: 919153051}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: rightHand
value:
objectReference: {fileID: 238421040}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: rightQuad
value:
objectReference: {fileID: 535173809}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: leftSpring
value:
objectReference: {fileID: 49756914}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: backBattery
value:
objectReference: {fileID: 242966128}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: rightSpring
value:
objectReference: {fileID: 631883696}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: leftWallShoe
value:
objectReference: {fileID: 1129569242}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: rightWallShoe
value:
objectReference: {fileID: 1129569241}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: thiccLeftQuad
value:
objectReference: {fileID: 1129569237}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: thiccRightQuad
value:
objectReference: {fileID: 1129569243}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: leftRollerSkate
value:
objectReference: {fileID: 1129569239}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: rightStickyHand
value:
objectReference: {fileID: 1129569240}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: rightRollerSkate
value:
objectReference: {fileID: 1129569238}
- target: {fileID: 3670971460473670880, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: runnerBodyModifiers.Array.data[0]
value:

View File

@ -7,21 +7,19 @@ public class KingTooltips : MonoBehaviour
{
////Weather Wheel Variables
public GameObject curWeatherSpriteObj;
public Text curWeatherText;
public Image curWeatherImage;
float curSpriteRotation;
public Text curWeatherTitle;
string rainExplanation = "Increases the players acceleration & decreases the players traction.";
string rainTitle = "Rain";
string snowExplanation = "Increases the players traction & decreases the players acceleration.";
string snowTitle = "Snow";
string windExplanation = "Pushes the player in a random direction altering their movement.";
string windTitle = "Wind";
string fogExplanation = "Obscures the players vision.";
string fogTitle = "Fog";
string defaultWeatherTitle;
string defaultWeatherExplanation;
public Sprite rain;
public Sprite snow;
public Sprite wind;
public Sprite fog;
////
////Placeables Variables
@ -30,55 +28,47 @@ public class KingTooltips : MonoBehaviour
public Image curPlaceablesImage;
string blockExplanation = "Place a block on the grid to obstruct a players movement.";
string thunderExplanation = "Places Thunder Above both players forcing them to the ground if they stay aerial for too long.";
string bumperExplanation = "Places a bumper on the grid to obstruct and knock the players back.";
string slimeExplanation = "Click and hold the mouse to place and then choose the direction the slowing slime goes.";
string hailExplanation = "Click and hold the mouse to adjust the hail size dropping papers";
string defaultPlaceablesExplanation;
public Sprite block;
public Sprite thunder;
public Sprite bumper;
public Sprite slime;
public Sprite hail;
void Start(){
defaultWeatherTitle = curWeatherTitle.text;
defaultWeatherExplanation = curWeatherText.text;
defaultPlaceablesExplanation = curPlaceablesText.text;
curWeatherSpriteObj.SetActive(false);
curPlaceablesSpriteObj.SetActive(false);
}
////Weather Wheel Functions
public void OnEnterRain(){
curWeatherSpriteObj.SetActive(true);
curWeatherSpriteObj.transform.localEulerAngles = new Vector3(0, 0, 135);
curWeatherImage.sprite = rain;
curWeatherTitle.text = rainTitle;
curWeatherText.text = rainExplanation;
}
public void OnEnterSnow(){
curWeatherSpriteObj.SetActive(true);
curWeatherSpriteObj.transform.localEulerAngles = new Vector3(0, 0, -135);
curWeatherImage.sprite = snow;
curWeatherTitle.text = snowTitle;
curWeatherText.text = snowExplanation;
}
public void OnEnterWind(){
curWeatherSpriteObj.SetActive(true);
curWeatherSpriteObj.transform.localEulerAngles = new Vector3(0, 0, -45);
curWeatherImage.sprite = wind;
curWeatherTitle.text = windTitle;
curWeatherText.text = windExplanation;
}
public void OnEnterFog(){
curWeatherSpriteObj.SetActive(true);
curWeatherSpriteObj.transform.localEulerAngles = new Vector3(0, 0, 45);
curWeatherImage.sprite = fog;
curWeatherTitle.text = fogTitle;
curWeatherText.text = fogExplanation;
}
public void OnExitWeather(){
curWeatherSpriteObj.SetActive(false);
curWeatherTitle.text = defaultWeatherTitle;
curWeatherText.text = defaultWeatherExplanation;
}
////
@ -90,10 +80,10 @@ public class KingTooltips : MonoBehaviour
curPlaceablesText.text = blockExplanation;
}
public void OnEnterThunder(){
public void OnEnterBumper(){
curPlaceablesSpriteObj.SetActive(true);
curPlaceablesImage.sprite = thunder;
curPlaceablesText.text = thunderExplanation;
curPlaceablesImage.sprite = bumper;
curPlaceablesText.text = bumperExplanation;
}
public void OnEnterSlime(){

View File

@ -12,6 +12,9 @@ public class LobbyItems : MonoBehaviour
LobbyUI lobbyUI;
PlayerInventory pInv;
public GameObject itemOptPrefab;
public GameObject costPointer;
public Text costPointerText;
public Vector3[] costPointerPos;
private Slider glueGooSlider;
private PlayerStats pStats;
@ -135,7 +138,9 @@ public class LobbyItems : MonoBehaviour
if(pInv.PlayerItemDict.ContainsKey(item.name)){
//Player can remove the item
pointsLeft += itemCost;
costPointer.transform.localPosition = costPointerPos[pointsLeft];
costPointerText.text = pointsLeft.ToString();
//Glue level
glueGooSlider.value += itemCost;
@ -148,6 +153,8 @@ public class LobbyItems : MonoBehaviour
else if(!pInv.PlayerItemDict.ContainsKey(item.name) && (pointsLeft - itemCost) >= 0){
//Player can add the item
pointsLeft -= itemCost;
costPointer.transform.localPosition = costPointerPos[pointsLeft];
costPointerText.text = pointsLeft.ToString();
//glue level
glueGooSlider.value -= itemCost;

View File

@ -26,6 +26,18 @@ TextureImporter:
- first:
213: 2093323450993257831
second: KR_UI_KingSheet_JadS_V03_7
- first:
213: -5956525014613863018
second: Snow
- first:
213: 2727786002229355747
second: Rain
- first:
213: -7913372982308857268
second: Wind
- first:
213: 2738336841607438541
second: Fog
externalObjects: {}
serializedVersion: 11
mipmaps:
@ -183,7 +195,7 @@ TextureImporter:
width: 404
height: 387
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@ -204,7 +216,7 @@ TextureImporter:
width: 404
height: 387
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@ -225,7 +237,7 @@ TextureImporter:
width: 404
height: 387
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@ -246,7 +258,7 @@ TextureImporter:
width: 403
height: 387
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@ -267,7 +279,7 @@ TextureImporter:
width: 123
height: 123
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@ -288,7 +300,7 @@ TextureImporter:
width: 208
height: 185
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@ -305,11 +317,11 @@ TextureImporter:
rect:
serializedVersion: 2
x: 1305
y: 17
y: 21
width: 600
height: 613
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@ -330,7 +342,7 @@ TextureImporter:
width: 928
height: 50
alignment: 0
pivot: {x: 0, y: 0}
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
@ -342,6 +354,90 @@ TextureImporter:
indices:
edges: []
weights: []
- serializedVersion: 2
name: Snow
rect:
serializedVersion: 2
x: 1305
y: 326
width: 300
height: 306
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 6955638ee0c265da0800000000000000
internalID: -5956525014613863018
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: Rain
rect:
serializedVersion: 2
x: 1605
y: 326
width: 300
height: 306
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 3e4e926aaea0bd520800000000000000
internalID: 2727786002229355747
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: Wind
rect:
serializedVersion: 2
x: 1305
y: 21
width: 300
height: 305
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: c4a9e4e033d0e2290800000000000000
internalID: -7913372982308857268
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: Fog
rect:
serializedVersion: 2
x: 1605
y: 21
width: 300
height: 305
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: dc0606f59d6800620800000000000000
internalID: 2738336841607438541
vertices: []
indices:
edges: []
weights: []
outline: []
physicsShape: []
bones: []