Make Soundings voyages playable with ship operations and guided tips
This commit is contained in:
@@ -6,6 +6,7 @@ Shader "Soundings/Harbor Water"
|
||||
_BackdropCrop ("Harbor crop", Vector) = (1,1,0,0)
|
||||
_HullSpan ("Hull length and beam", Vector) = (71,7,0,0)
|
||||
_Underway ("Open water blend", Range(0,1)) = 0
|
||||
_WeatherSeverity ("Sea conditions", Range(0,1)) = 0
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
@@ -21,7 +22,7 @@ Shader "Soundings/Harbor Water"
|
||||
|
||||
sampler2D _Backdrop;
|
||||
float4 _BackdropCrop, _HullSpan;
|
||||
float _Underway;
|
||||
float _Underway, _WeatherSeverity;
|
||||
struct Output { float4 clip : SV_POSITION; float4 screen : TEXCOORD0; float2 world : TEXCOORD1; };
|
||||
|
||||
Output vert(appdata_base input)
|
||||
@@ -40,7 +41,8 @@ Shader "Soundings/Harbor Water"
|
||||
float waterMask = 1 - smoothstep(.55,.69,uv.y);
|
||||
float2 p = input.world - _HullSpan.zw;
|
||||
float t = _Time.y;
|
||||
float textureWave = sin(p.y * 1.94 + p.x * .30 + sin(p.x * .44 - t * .30)) * .0015;
|
||||
float textureWave = sin(p.y * 1.94 + p.x * .30 + sin(p.x * .44 - t * (.30 + 1.2 * _WeatherSeverity)))
|
||||
* (.0015 + .003 * _WeatherSeverity);
|
||||
uv += waterMask * float2(textureWave, textureWave * .14);
|
||||
float3 color = tex2D(_Backdrop, uv).rgb;
|
||||
if (_Underway > 0)
|
||||
@@ -53,7 +55,19 @@ Shader "Soundings/Harbor Water"
|
||||
float west = pow(1 - screen.x, 1.65);
|
||||
float3 horizon = lerp(float3(.45,.53,.59), float3(.83,.60,.46), west);
|
||||
float3 sky = lerp(horizon, float3(.13,.24,.38), twilight);
|
||||
float cloud = .76 + .24 * sin(screen.x * 18 + screen.y * 8 + sin(screen.x * 41 - t * .2));
|
||||
float3 stormSky = lerp(float3(.37,.45,.49), float3(.10,.15,.20), twilight) * cloud;
|
||||
sky = lerp(sky, stormSky, _WeatherSeverity);
|
||||
float chop = sin(p.y * .83 + p.x * .45 - t * 2.4) * sin(p.x * .48 + p.y * 2.2 + t * 1.6);
|
||||
openWater = lerp(openWater, openWater * .56 + float3(.055,.082,.09), _WeatherSeverity);
|
||||
openWater += max(0, chop - .70) * .19 * _WeatherSeverity;
|
||||
color = lerp(color, lerp(openWater, sky, skyBand), _Underway);
|
||||
if (_WeatherSeverity > .75)
|
||||
{
|
||||
float2 rainGrid = float2(screen.x * 160 + screen.y * 42, screen.y * 22 + t * 15);
|
||||
float rain = step(.973, frac(rainGrid.x + floor(rainGrid.y) * .381)) * step(.58, frac(rainGrid.y));
|
||||
color += rain * .22 * _Underway * float3(.55,.69,.77);
|
||||
}
|
||||
waterMask = lerp(waterMask, 1 - skyBand, _Underway);
|
||||
}
|
||||
|
||||
|
||||
136
Assets/Soundings/Resources/Passage.uss
Normal file
136
Assets/Soundings/Resources/Passage.uss
Normal file
@@ -0,0 +1,136 @@
|
||||
.voyage-overlay {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.voyage-business {
|
||||
position: absolute;
|
||||
left: 30px;
|
||||
top: 84px;
|
||||
width: 284px;
|
||||
}
|
||||
.voyage-business-opener { align-items: flex-start; }
|
||||
.action.voyage-drawer-toggle {
|
||||
background-color: #203642;
|
||||
color: #f2ddad;
|
||||
height: 34px;
|
||||
min-height: 34px;
|
||||
padding: 0 12px;
|
||||
border-width: 1px;
|
||||
border-color: #866e48;
|
||||
border-radius: 3px 3px 0 0;
|
||||
}
|
||||
.voyage-business-book {
|
||||
padding: 9px 11px 7px;
|
||||
background-color: rgba(8, 22, 29, .94);
|
||||
border-width: 1px;
|
||||
border-color: #796d55;
|
||||
border-left-width: 2px;
|
||||
border-left-color: #c4a369;
|
||||
}
|
||||
.voyage-business-metrics { flex-direction: row; justify-content: space-between; margin-bottom: 4px; }
|
||||
.voyage-business-metric { flex-grow: 1; }
|
||||
.voyage-caption { font-size: 9px; letter-spacing: 1px; color: #dcca9f; -unity-font-style: bold; }
|
||||
.voyage-business-value { color: #f5deae; font-size: 25px; }
|
||||
.voyage-provisions { margin-bottom: 4px; color: #aac4bf; font-size: 11px; }
|
||||
.voyage-service {
|
||||
border-top-width: 1px;
|
||||
border-top-color: #41565a;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
.voyage-service-line { flex-direction: row; justify-content: space-between; align-items: center; }
|
||||
.voyage-service-name { font-size: 13px; color: #f3f1db; -unity-font-style: bold; }
|
||||
.voyage-service-demand { font-size: 11px; color: #b9e0ca; }
|
||||
.voyage-service-demand.voyage-demand-short { color: #e6bf86; }
|
||||
.voyage-service-included { color: #a6bbba; font-size: 10px; margin-top: 2px; }
|
||||
.voyage-price-row { flex-direction: row; align-items: center; margin-top: 3px; }
|
||||
.action.voyage-price-step {
|
||||
width: 26px;
|
||||
min-width: 26px;
|
||||
min-height: 24px;
|
||||
height: 24px;
|
||||
padding: 0;
|
||||
color: #e6ca91;
|
||||
}
|
||||
.voyage-service-price { min-width: 43px; color: #f2d9a6; -unity-text-align: middle-center; font-size: 13px; }
|
||||
.action.voyage-special {
|
||||
margin-left: 7px;
|
||||
min-height: 25px;
|
||||
height: 25px;
|
||||
padding: 0 6px;
|
||||
color: #eacb8d;
|
||||
background-color: #223a42;
|
||||
font-size: 11px;
|
||||
}
|
||||
.voyage-metric-help { color: #a7babb; font-size: 10px; margin-top: 6px; }
|
||||
.voyage-event-host { position: absolute; top: 84px; right: 30px; width: 294px; }
|
||||
.voyage-event {
|
||||
background-color: rgba(12, 25, 32, .96);
|
||||
padding: 11px 13px;
|
||||
border-width: 1px;
|
||||
border-color: #af8e5a;
|
||||
border-top-width: 2px;
|
||||
border-top-color: #d8b47c;
|
||||
}
|
||||
.voyage-event-title { color: #f1ddb0; font-size: 27px; margin: 2px 0 5px; }
|
||||
.voyage-event-copy { color: #e4ebdf; white-space: normal; font-size: 13px; }
|
||||
.voyage-event-impact { color: #bfd2cc; white-space: normal; font-size: 11px; margin-top: 7px; }
|
||||
.voyage-event-clock { color: #eacb8d; font-size: 11px; margin-top: 8px; }
|
||||
.action.voyage-event-accept { background-color: #d8b680; color: #1b302f; border-color: #e8c992; margin-top: 8px; min-height: 32px; }
|
||||
.action.voyage-event-decline { margin-top: 5px; min-height: 30px; }
|
||||
.voyage-event-result { border-top-width: 1px; padding: 8px 10px; }
|
||||
.voyage-deckbar {
|
||||
position: absolute;
|
||||
bottom: 100px;
|
||||
left: 7%;
|
||||
right: 7%;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.voyage-deck-caption { margin-right: 8px; }
|
||||
.action.voyage-view-button {
|
||||
background-color: rgba(10, 26, 35, .95);
|
||||
color: #e7d4a6;
|
||||
border-color: #77857c;
|
||||
height: 30px;
|
||||
min-height: 30px;
|
||||
padding: 0 9px;
|
||||
font-size: 12px;
|
||||
margin: 0 3px;
|
||||
}
|
||||
.action.voyage-view-button:hover, .action.voyage-view-button:focus { border-color: #e5c990; }
|
||||
.action.voyage-control-active { background-color: #d8b680; border-color: #e8c992; color: #1b302f; }
|
||||
.action.voyage-reset { margin-left: 7px; }
|
||||
.voyage-rail {
|
||||
position: absolute;
|
||||
left: 5%;
|
||||
right: 5%;
|
||||
bottom: 18px;
|
||||
min-height: 70px;
|
||||
padding: 7px 11px;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
background-color: rgba(7, 21, 29, .95);
|
||||
border-width: 1px;
|
||||
border-color: #796d55;
|
||||
border-top-width: 2px;
|
||||
border-top-color: #c4a369;
|
||||
}
|
||||
.voyage-route { flex-grow: 1; min-width: 0; margin-right: 15px; }
|
||||
.voyage-route-context { flex-direction: row; align-items: center; }
|
||||
.voyage-conditions { margin-left: 9px; color: #a9c7bd; font-size: 10px; }
|
||||
.voyage-conditions.voyage-conditions-warning { color: #efab87; }
|
||||
.voyage-route-name { font-size: 27px; color: #f5deae; }
|
||||
.voyage-remaining { font-size: 11px; color: #bfcfcb; }
|
||||
.voyage-progress { height: 3px; background-color: #40585d; margin-top: 4px; }
|
||||
.voyage-progress-fill { height: 3px; background-color: #d8b680; }
|
||||
.voyage-speed { margin-right: 15px; align-items: flex-start; }
|
||||
.voyage-speed-buttons { flex-direction: row; margin-top: 5px; }
|
||||
.voyage-camera { margin-right: 15px; }
|
||||
.voyage-camera-help { color: #c4d4cf; font-size: 11px; margin-top: 5px; }
|
||||
.action.voyage-skip { flex-shrink: 0; }
|
||||
12
Assets/Soundings/Resources/Passage.uss.meta
Normal file
12
Assets/Soundings/Resources/Passage.uss.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7a02a05e40fd7cc1929dee801b9c4c9
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||
disableValidation: 0
|
||||
unsupportedSelectorAction: 0
|
||||
31
Assets/Soundings/Resources/ServiceControls.uss
Normal file
31
Assets/Soundings/Resources/ServiceControls.uss
Normal file
@@ -0,0 +1,31 @@
|
||||
.service-stations {
|
||||
position: absolute;
|
||||
top: 75px;
|
||||
left: 19%;
|
||||
right: 24%;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
padding: 4px;
|
||||
background-color: rgba(10, 21, 27, .92);
|
||||
border-width: 1px;
|
||||
border-color: #7e7866;
|
||||
}
|
||||
.service-station { min-height: 29px; margin: 0 2px; padding: 2px 7px; font-size: 12px; flex-grow: 1; }
|
||||
.service-selected { color: #f5d89d; background-color: #3a4947; border-color: #cfa873; }
|
||||
.service-console {
|
||||
position: absolute;
|
||||
bottom: 151px;
|
||||
left: 26px;
|
||||
width: 291px;
|
||||
padding: 12px;
|
||||
background-color: rgba(11, 25, 32, .94);
|
||||
border-width: 1px;
|
||||
border-left-width: 2px;
|
||||
border-color: #927e5d;
|
||||
}
|
||||
.service-title { font-size: 28px; color: #f0dfbb; margin-bottom: 4px; }
|
||||
.service-metrics { white-space: normal; font-size: 13px; margin: 3px 0 8px; color: #d4e4e1; }
|
||||
.service-engines { flex-direction: row; }
|
||||
.service-engines .action { flex-grow: 1; padding: 3px 7px; margin-right: 4px; min-height: 29px; }
|
||||
.service-tip { white-space: normal; font-size: 11px; color: #a6bcb8; margin-top: 5px; }
|
||||
.service-operate, .service-assist { margin-top: 5px; min-height: 30px; }
|
||||
12
Assets/Soundings/Resources/ServiceControls.uss.meta
Normal file
12
Assets/Soundings/Resources/ServiceControls.uss.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 41b8dfcd54fe12ffaa79ebd161b12d5e
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||
disableValidation: 0
|
||||
unsupportedSelectorAction: 0
|
||||
@@ -124,6 +124,8 @@
|
||||
.work-berth.work-room-2 { background-color: #55523d; border-color: #9e8f5e; }
|
||||
.work-berth.work-room-3 { background-color: #54415b; border-color: #9a7ea2; }
|
||||
.work-berth.work-room-4 { background-color: #394e64; border-color: #7592ad; }
|
||||
.work-berth.work-room-5 { background-color: #664439; border-color: #bd8d79; }
|
||||
.work-berth.work-room-6 { background-color: #3c5947; border-color: #89a877; }
|
||||
.work-berth:hover, .work-berth:focus {
|
||||
background-color: #39626b;
|
||||
border-color: #d8ecdb;
|
||||
@@ -262,3 +264,12 @@
|
||||
}
|
||||
.work-primary:hover { background-color: #edd49c; border-color: #f3dbb0; }
|
||||
.work-overhaul { color: #e5c995; border-color: #807255; border-radius: 2px; }
|
||||
|
||||
.work-fit-modes { flex-direction: row; margin: 0 0 6px; }
|
||||
.work-fit-modes .action { min-height: 26px; font-size: 12px; margin-right: 6px; padding: 2px 9px; }
|
||||
.work-fit-modes .work-selected { border-color: #caad74; color: #f0d3a7; background-color: #30494b; }
|
||||
.work-berth.work-room-7 { background-color: #5b4b3c; border-color: #ad936e; }
|
||||
.work-berth.work-room-8 { background-color: #50563e; border-color: #979e6d; }
|
||||
.work-berth.work-room-9 { background-color: #325761; border-color: #77a9b3; }
|
||||
.work-berth.work-room-10 { background-color: #34594c; border-color: #7fa98b; }
|
||||
.work-berth.work-room-11 { background-color: #60553c; border-color: #baab79; }
|
||||
|
||||
Reference in New Issue
Block a user