Hologram calls, HaulOS phone, Enhanced lighting, smoother camera; Blender remaster review files
Game: - Assistant and Director portraits: GPT backgrounds and a holographic appear/disappear shader (Talk/TalkHolo) instead of on/off - Phone redesigned (HaulOS home, address bar, dock, error/loading states) and the browser link made sturdier - Settings > Graphics > Lighting: Classic / Enhanced (runtime volume, no project assets changed); Enhanced SSAO uses the smooth interleaved-gradient method at high samples so flat panels don't speckle - Painted board textures (T_HullPanel, T_BarnRed) keep only edge wear: the big bare-wood patches read as dirty smudges - The head leans into a sidestep smoothly instead of snapping with A / D - New keys in all 11 languages Review only (nothing swapped into the game yet): ArtSource/Blender/remaster (v1 paint pass of our own models, Synty-built ones left out), remaster/crew (crew repaint with arm, colour-edge and face fixes), remaster_v2 (smooth-geometry pilot). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -405,20 +405,15 @@ namespace GrassCutter
|
||||
public PhoneCall(VisualElement screen)
|
||||
{
|
||||
_root = Box(screen, 0f, 0f, W, H);
|
||||
_root.style.backgroundColor = new Color(0.1f, 0.16f, 0.3f);
|
||||
// mission control behind him, and him in front from the hips up, like a video call
|
||||
var bg = AssetBank.I ? AssetBank.I.Tex("T_Dir_Bg") : null;
|
||||
if (bg)
|
||||
{
|
||||
_root.style.backgroundImage = new StyleBackground(bg);
|
||||
_root.style.unityBackgroundScaleMode = ScaleMode.ScaleAndCrop;
|
||||
_root.style.unityBackgroundImageTintColor = new Color(0.82f, 0.86f, 0.95f);
|
||||
}
|
||||
_talk = new TalkVideo("boss", new[] { "calm", "stern", "angry" }, 640, 650);
|
||||
_picture = Box(_root, 0f, PicTop, W, H - PicTop - PicBottom);
|
||||
_picture.style.unityBackgroundScaleMode = ScaleMode.ScaleAndCrop;
|
||||
_talk.Switched = rt => _picture.style.backgroundImage = new StyleBackground(Background.FromRenderTexture(rt));
|
||||
_talk.Switched(_talk.Rt);
|
||||
_root.style.backgroundColor = new Color(0.02f, 0.04f, 0.09f);
|
||||
// his office on Earth behind him, him in front from the hips up, like a video call: the whole screen is one
|
||||
// picture, which comes in and goes out as a hologram (TalkVideo)
|
||||
var fig = new Rect(0f, PicBottom / H, 1f, (H - PicTop - PicBottom) / H);
|
||||
_talk = new TalkVideo("boss", new[] { "calm", "stern", "angry" }, 640, 650, RtW, RtH, fig, "T_Talk_BossBg");
|
||||
_picture = Box(_root, 0f, 0f, W, H);
|
||||
_picture.style.unityBackgroundScaleMode = ScaleMode.StretchToFill;
|
||||
_picture.style.backgroundImage = new StyleBackground(Background.FromRenderTexture(_talk.Rt));
|
||||
_talk.Gone = () => _root.style.display = DisplayStyle.None;
|
||||
_fx = Box(_root, 0f, 0f, W, H);
|
||||
|
||||
// the anger vein on his forehead
|
||||
@ -438,7 +433,7 @@ namespace GrassCutter
|
||||
var bar = Box(_root, 0f, 0f, W, 230f);
|
||||
bar.style.backgroundColor = new Color(0.02f, 0.05f, 0.12f, 0.72f);
|
||||
bar.style.alignItems = Align.Center;
|
||||
bar.style.paddingTop = 78;
|
||||
bar.style.paddingTop = 46;
|
||||
var name = UIK.Text("G.R.A.S.S.A.", "", bar, true);
|
||||
name.style.fontSize = 64; name.style.color = new Color(1f, 0.86f, 0.4f);
|
||||
var row = new VisualElement { pickingMode = PickingMode.Ignore };
|
||||
@ -454,6 +449,10 @@ namespace GrassCutter
|
||||
who.style.fontSize = 28; who.style.color = new Color(0.86f, 0.92f, 1f);
|
||||
_timer = UIK.Text("00:00", "", bar, false);
|
||||
_timer.style.fontSize = 26; _timer.style.color = new Color(0.7f, 0.8f, 0.9f, 0.8f);
|
||||
_timer.style.marginTop = 6;
|
||||
// the bar is a fixed height: nothing in it may be squeezed (the row under the name was, to nothing, and the
|
||||
// timer sat on top of it)
|
||||
name.style.flexShrink = 0; row.style.flexShrink = 0; _timer.style.flexShrink = 0;
|
||||
|
||||
// the red button at the foot
|
||||
var hang = Box(_root, (W - 110f) * 0.5f, H - 160f, 110f, 110f);
|
||||
@ -463,7 +462,9 @@ namespace GrassCutter
|
||||
key.style.fontSize = 48; key.style.color = Color.white;
|
||||
key.style.unityTextAlign = TextAnchor.MiddleCenter;
|
||||
key.style.flexGrow = 1;
|
||||
Show(false);
|
||||
// the agency's bar and the button light up ahead of the picture, and go out after it
|
||||
_talk.Drawn = a => { float o = Mathf.Clamp01(a * 3f); bar.style.opacity = o; hang.style.opacity = o; };
|
||||
_root.style.display = DisplayStyle.None;
|
||||
}
|
||||
|
||||
static VisualElement Box(VisualElement parent, float x, float y, float w, float h)
|
||||
@ -482,9 +483,15 @@ namespace GrassCutter
|
||||
|
||||
public void Show(bool on)
|
||||
{
|
||||
_root.style.display = on ? DisplayStyle.Flex : DisplayStyle.None;
|
||||
_booth?.Show(on);
|
||||
if (!on) { _talk?.Stop(); return; }
|
||||
// off: the hologram fades out, then TalkVideo.Gone hides the screen
|
||||
_talk?.Show(on);
|
||||
if (!on)
|
||||
{
|
||||
if (_talk == null) _root.style.display = DisplayStyle.None;
|
||||
return;
|
||||
}
|
||||
_root.style.display = DisplayStyle.Flex;
|
||||
_root.BringToFront();
|
||||
_lastT = 0f;
|
||||
for (int i = 0; i < _mood.Length; i++) _mood[i] = 0f;
|
||||
|
||||
Reference in New Issue
Block a user