Repository navigation
Moonwell 0.17.0
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.csvbeside 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. AProgressBargiven a bar look cuts instead of squashing, andLooks.Round(path)gives a listed icon's round copy. - Labels:
Size,FontandShadow, read when a label is made, from text templates the build writes for the game's font and each.ttfin the assets.Scalesizes 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, inScreen.DesignHeightunits. - 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
EffectonLabelandFloatingText.TextEffect.Rainbow()turns the rainbow along the text, andTextEffect.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),ActionButtonwith a hotkey, a count and a clockwise cooldown sweep,CastBarwithStartandInterrupt,BuffRowwith the icons the build reads from each buff's object data, andSelectionList.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 pollsSelection. - From 0.16.0:
Moonwell.AI,Moonwell.AI.CombatandMoonwell.Simulation, with 0.15.1's fixes.
Known
- The guide's
UnitFrameexample 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,FontandShadoware read when a label is made. - A frame drawn under a game HUD frame that is a simple frame never shows, so
Screen.AddToshows 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.