Skip to content

Moonwell 0.17.0

Choose a tag to compare

@mdlsvensson mdlsvensson released this 14 Nov 14:12
· 14 commits to main since this release

Moonwell 0.17.0 grows Moonwell.Frames and Moonwell.Kit for HUDs like the map project's WoW-style UI: textures cut, coloured and rounded by the build, labels with their own size and font, pixel layout, frames on the game's own HUD pieces and portrait, text that moves by itself, and Kit's HUD parts: unit frames, bars, action buttons, cast bars, buff rows and a list of the selected units. It includes 0.16.0's AI package.

The full suite passes, and Moonwell's cases pass on .NET and in Lua, in development and release builds. Each part was checked in the game (3.0.1.24371) in its own probe or check map, and the Kit parts and moving text together in one map, in single player and classic graphics. Multiplayer checks are still to come.

New

  • Looks: a .looks.csv beside a texture lists copies the build makes of it: a piece (mirrored too), a colour, a round cut, and for bars 64 cut steps. Code reaches each by a typed name (image.Texture = Looks.UiTargetingFrame.PlayerFrame), so a wrong name is a compile error. A row with no texture of its name is a flat colour. A ProgressBar given a bar look cuts instead of squashing, and Looks.Round(path) gives a listed icon's round copy.
  • Labels: Size, Font and Shadow, read when a label is made, from text templates the build writes for the game's font and each .ttf in the assets. Scale sizes the text only and keeps its place. label.ShowNameOf(unit) shows each machine its own name for a unit.
  • Pixel layout: frame.Add(child, x, y, width, height) places a child from its parent's top left, y down, in Screen.DesignHeight units.
  • The game's HUD: piece.Fill(frame) puts a moved HUD piece over a frame at its size. GameUi.Portrait.Fill(frame) places the game's moving portrait in a frame, fitted to the window's shape. Screen.AddTo(frame, gameFrame, scope) makes a frame that shows and hides with one of the game's.
  • Text that moves: an Effect on Label and FloatingText. TextEffect.Rainbow() turns the rainbow along the text, and TextEffect.Sweep(main, sweep, shape) passes a band. Moonwell redraws them on one shared timer until the effect is set to null or the text ends.
  • Kit's HUD parts: UnitFrame (icon, name, level, life and mana bars, buffs), StatusBar.Follow(unit, Vital.Life), ActionButton with a hotkey, a count and a clockwise cooldown sweep, CastBar with Start and Interrupt, BuffRow with the icons the build reads from each buff's object data, and SelectionList.Follow(player). Each is laid out in the theme, and each piece is a frame of its own to place again or retexture.
  • Selection changed: OnSelectionChanged(Player player) on game and player components, so a map no longer polls Selection.
  • From 0.16.0: Moonwell.AI, Moonwell.AI.Combat and Moonwell.Simulation, with 0.15.1's fixes.

Known

  • The guide's UnitFrame example puts the frame at the top left, where the game's top bar covers its name. Place it lower until 0.17.1 fixes the example.
  • The game takes a label's font and height only from its template, so Size, Font and Shadow are read when a label is made.
  • A frame drawn under a game HUD frame that is a simple frame never shows, so Screen.AddTo shows it over the HUD and follows the game frame's visibility instead.
  • Big-area heights (0.15.1) are experimental: on one map, classic graphics drew the ground flat while trees and units followed the heights.
  • Multiplayer is not checked yet, nor a game in another language.