Skip to content

Commit 3fbf074

Browse files
committed
put a pin in it
1 parent b2c5cf0 commit 3fbf074

13 files changed

Lines changed: 48 additions & 70 deletions

review/mixing_table.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Timestamp": "2026-03-13T18:50:45.5390838Z",
2+
"Timestamp": "2026-03-13T19:34:14.2671945Z",
33
"Performance": {
44
"TotalTime": 0.0500001,
55
"ElapsedFrameTime": 16.6667
@@ -44,7 +44,7 @@
4444
{
4545
"Text": "[BTN_FOCUS]",
4646
"Subtitle": null,
47-
"Tooltip": "[TOOLTIP_FOCUS]",
47+
"Tooltip": "Gather raw magical potential.\nGain 1.0 [i:aether] [c:purple]Aether[/c] per click.",
4848
"Bounds": {
4949
"X": 412,
5050
"Y": 60,

review/mixing_table.png

12.9 KB
Loading

review/spire_flow.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Timestamp": "2026-03-13T18:50:35.3341113Z",
2+
"Timestamp": "2026-03-13T19:34:03.5860984Z",
33
"Performance": {
44
"TotalTime": 0.0500001,
55
"ElapsedFrameTime": 16.6667
@@ -44,7 +44,7 @@
4444
{
4545
"Text": "[BTN_FOCUS]",
4646
"Subtitle": null,
47-
"Tooltip": "[TOOLTIP_FOCUS]",
47+
"Tooltip": "Gather raw magical potential.\nGain 1.0 [i:aether] [c:purple]Aether[/c] per click.",
4848
"Bounds": {
4949
"X": 412,
5050
"Y": 60,

review/spire_flow.png

14.5 KB
Loading

review/void_main.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Timestamp": "2026-03-13T18:50:30.3562613Z",
2+
"Timestamp": "2026-03-13T19:33:58.571079Z",
33
"Performance": {
44
"TotalTime": 0.0833335,
55
"ElapsedFrameTime": 16.6667
@@ -44,7 +44,7 @@
4444
{
4545
"Text": "[BTN_FOCUS]",
4646
"Subtitle": null,
47-
"Tooltip": "[TOOLTIP_FOCUS]",
47+
"Tooltip": "Gather raw magical potential.\nGain 1.0 [i:aether] [c:purple]Aether[/c] per click.",
4848
"Bounds": {
4949
"X": 412,
5050
"Y": 60,

review/void_main.png

200 KB
Loading

review/world_map.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Timestamp": "2026-03-13T18:50:40.4871377Z",
2+
"Timestamp": "2026-03-13T19:34:08.8087198Z",
33
"Performance": {
44
"TotalTime": 0.0500001,
55
"ElapsedFrameTime": 16.6667
@@ -44,7 +44,7 @@
4444
{
4545
"Text": "[BTN_FOCUS]",
4646
"Subtitle": null,
47-
"Tooltip": "[TOOLTIP_FOCUS]",
47+
"Tooltip": "Gather raw magical potential.\nGain 1.0 [i:aether] [c:purple]Aether[/c] per click.",
4848
"Bounds": {
4949
"X": 412,
5050
"Y": 60,

review/world_map.png

18.7 KB
Loading

src/IncriElemental.Desktop/Game1.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public Game1()
5050
_engine = new GameEngine(); _ai = new AiModeSystem(_engine);
5151
var jp = "manifestations.json"; if (File.Exists(jp)) _engine.LoadDefinitions(File.ReadAllText(jp));
5252
var lp = "lore.json"; if (File.Exists(lp)) _engine.LoadLore(File.ReadAllText(lp));
53-
var sp = "Content/strings.json"; if (File.Exists(sp)) TextService.Instance.LoadStrings(File.ReadAllText(sp));
53+
var sp = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Content/strings.json");
54+
if (File.Exists(sp)) TextService.Instance.LoadStrings(File.ReadAllText(sp));
55+
else if (File.Exists("Content/strings.json")) TextService.Instance.LoadStrings(File.ReadAllText("Content/strings.json"));
5456
if (Environment.GetCommandLineArgs().Contains("--ai-mode")) _aiMode = true;
5557
}
5658

src/IncriElemental.Desktop/UI/Button.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public void Draw(SpriteBatch spriteBatch, SpriteFont? font, Texture2D pixel, Vis
4242
if (font != null)
4343
{
4444
var locText = (Text.StartsWith("[") && Text.EndsWith("]")) ? TextService.Instance.Get(Text.Trim('[', ']')) : Text;
45+
if (string.IsNullOrEmpty(locText)) locText = Text; // Fallback to literal text if key not found
4546
var textSize = font.MeasureString(locText);
4647
var textPos = new Vector2(b.Center.X - textSize.X / 2, b.Center.Y - textSize.Y / 2);
4748
if (!string.IsNullOrEmpty(Subtitle)) textPos.Y -= 10;
@@ -50,6 +51,7 @@ public void Draw(SpriteBatch spriteBatch, SpriteFont? font, Texture2D pixel, Vis
5051
if (!string.IsNullOrEmpty(Subtitle))
5152
{
5253
var locSub = (Subtitle.StartsWith("[") && Subtitle.EndsWith("]")) ? TextService.Instance.Get(Subtitle.Trim('[', ']')) : Subtitle;
54+
if (string.IsNullOrEmpty(locSub)) locSub = Subtitle;
5355
var subSize = font.MeasureString(locSub) * 0.8f;
5456
var subPos = new Vector2(b.Center.X - subSize.X / 2, textPos.Y + textSize.Y - 5);
5557
spriteBatch.DrawString(font, locSub, subPos, Color * 0.5f, 0f, Vector2.Zero, 0.8f, SpriteEffects.None, 0f);

0 commit comments

Comments
 (0)