itemupgrader-1.2.1-New-UI.jar
Curse Maven Snippet
What's new
Interface, animation and art pass on top of the 1.2.1 multiplayer update, closed out with a
stability pass: the wheel no longer pays before it stops, the table fits any window, a blackjack
table no longer takes the server down, and no announcement reaches the chat in the wrong language.
What was measured on a live client is listed under "Release checks" at the end of this section.
Roulette screen rebuilt
* The main screen was laid out from scratch on a strict grid. The roulette table is 380 x 240 and
the whole screen with the player inventory 380 x 334; the catalog column is 132 pixels wide.
* Every element has at least ten pixels of air around it, so nothing can touch anything else:
the jackpot plaque is a band of its own at the very top, the bet and the target sit in the top
corners with their captions below, the wheel stands in the middle with the live deal summary
next to it, the bet controls are one even row of seven, and the spin button spans the whole
panel underneath them.
* The catalog got a toolbar row: the sort toggle on the left, the item count on the right, the
search field above them and the six column grid below.
* All headings (Bet, Target, Catalog) are drawn with a shadow in gold, and ordinary text is white
or light grey.
* The spin button always states why it cannot be used, so it is never a dead button.
Wheel animation
* The wheel itself turns, not the pointer. The pointer stays fixed at the top and only flicks
when a pin passes under it.
* The speed follows the distance that is still left, so the wheel runs fast at the start and slows
down into the pocket, and the tick sound slows with it.
* The wheel always stops on the pocket the server rolled, so the picture and the prize agree.
High resolution interface
* Every panel, the wheel, the buttons and the banners are painted at eight times their logical
size and drawn down by the GPU with linear filtering, so the interface stays sharp on a 4K
screen instead of being a small image stretched over it.
* Every button label is fitted automatically: it is shrunk until it fits, and if even the
smallest size is not enough the text is cut with an ellipsis.
New visual style
* The roulette is drawn from geometry rather than from a flat picture: red and black pockets under
a gold rim, gold pegs and a dark hub, so the win sector can be lit, tinted and turned without
redrawing any art.
* The inventory sockets are softly lit wells instead of hard black squares, and the whole table is
clad in the dark charcoal felt with a gold frame described under "Dark casino palette" below.
Interface
* Global jackpot plaque: the pool is shown in a dedicated band at the very top of the roulette
panel, above the slots and the wheel, so it can never overlap them. The value counts up to its
new number instead of jumping.
* The old four line deal summary, which ran over the player inventory and over the footer, is
replaced by a compact summary next to the wheel with the fair odds and the risk level.
* Bank screen: panel resized and respaced, balance/debt/credit line/loan history given their own
rows, the amount field and the Withdraw button are aligned and the deposit hint no longer runs
into the slot frame.
* Daily rewards screen: rebuilt with a proper vertical rhythm (header, subtitle, reset timer,
three task cards, footer). Every card has its own band for name, description, progress bar,
reward line and the claim button.
* Statistics, spin history, hall of fame, value calculator, guide book, changelog and support
screens: spacing, text measuring and clipping polished; long names are trimmed instead of
running into the value column, the banner art no longer covers any text.
* Tooltips: the spin button now also shows the risk level and the size of the shared jackpot, the
bank, contracts and sort buttons explain themselves.
* The hall of fame never painted its ledger: the screen asked for the background and the panel
texture is drawn with it, so the list used to float over the raw world.
* The tip of the creative item list was one long line that ran out of the panel and into the
world. It is wrapped now, and the band under the inventory grows with it.
* The page counter of the spin history was drawn underneath the close button. It lives in the free
space between the buttons now and shrinks when the translation is long.
* The tooltip of an ingredient in the value calculator opened one or two pixels next to the cell
it belongs to. It opens on the cell itself now.
* The panel of the creative item list was taller than a very small window, so the back button ran
off the bottom. The rows of the player inventory shrink with the window now.
* The volume of the lounge loop was multiplied with the volume of its own constructor every time
the screen was rebuilt, so it became quieter and quieter. The configured volume is honoured.
Animation
* A shared animation kit (easing, springs, counters) drives every motion in the mod, all of it
frame rate independent.
* Buttons breathe on hover, carry a warm halo and a bright marker when they are switched on.
* Booster chips show a lit frame and a warm tint over the icon while they are armed, and a red
frame when the item is gone.
* The wheel sits in a soft halo that flares up while it spins, the jackpot plaque breathes and
runs a thin highlight along its edge, and the main spin button glows while it is ready.
* The chosen target is framed in the catalog with a breathing gold edge.
* Daily reward cards slide in one after another, the statistics counters arrive line by line, the
hall of fame rows cascade from the top, and the spin history slides in from the side when the
page changes. The scrollbar thumb glides instead of jumping.
Texts and localisation
* Daily rewards wording rewritten in EN and RU, the wheel chance tooltip no longer shows a debug
style breakdown, new localised keys for the odds, the risk tag, the spin button states and the
modifier list, the mixed character in the RU changelog fixed and the reward names aligned with
the item names.
* The boosters now show how they are crafted in the item tooltip.
Server side fixes
* The jackpot roll now uses the configured jackpot chance instead of a fixed value, a small pot is
still winnable instead of growing forever, and the reported jackpot value is what was really
handed over and never more than the pool itself.
* The spin cooldown is stamped before validation, so a client that spams invalid requests is
slowed down by the same cooldown as a real spin, and the per player stamp is dropped on logout
so the server does not accumulate them.
* The bank charges the exact rounded price of the stacks it hands out, so a purchase can never
creep past the requested amount.
* Contract claims answer the player in chat, the command outputs are localised instead of
hardcoded English, and the lucky win announcement is now an operator setting in the TOML.
Win timing
* The wheel glide is now derived from the very same server countdown that pays the prize, so the
reward can no longer land in the inventory while the wheel is still turning. The default spin of
90 ticks used to pay at 4.5 seconds while the animation ran 5.5; both are 4.5 seconds now.
* If the easing still finishes a frame early on a slow connection, the wheel holds on its pocket
until the synced countdown reaches zero. No result, no sound, no reward card and no particles
before the server has really handed the prize over.
The table fits the screen
* The 380 x 334 table is scaled as a whole to fit the window with a ten pixel margin instead of
filling the screen at a low GUI scale, and it never grows past its designed size on a big one.
Every pointer event is converted back through the same anchor, so buttons, the catalog grid, the
scrollbar drag and the count field keep working while the panel is shrunk. The guide book got the
same treatment.
* The screen wide veil behind the reward card and the Golden Hour banner are painted outside that
scale, so they cover the screen at any size instead of shrinking with the panel.
Dark casino palette
* The table cloth is a dark warm charcoal felt that keeps the original gold frame and the corner
flourishes: the cloth reads as #211C17, the catalog plate as #1C1712 and the slot wells as
#221D17, all measured against the reference art. The emerald cloth and the cool blue grey plates
are gone from every screen that drew them, the contracts screen included.
* The gold accents (#FFD84A, #D9A93A) and the red and black pockets of the wheel are untouched,
because the reference art shows exactly those.
Stability and fairness fixes
* A blackjack table kept one deck for its whole life and never shuffled again. Hitting and the
dealer stopped at an empty deck, but the deal itself drew blindly and took the server down with an
index out of bounds after a handful of hands. The deck is now refilled and shuffled whenever it
holds fewer cards than the next deal needs.
* The seat of a card table stores the ServerPlayer itself, yet only the spin cooldown was dropped on
logout, so every player who left stayed seated and stayed in memory. Leaving now clears the seat
and deletes a table nobody sits at any more.
* Double or Nothing took the second copy of the bet from any stack of the same item, ignoring NBT,
wear and enchantments, while the chance was computed from the stack in the slot. It now consumes
only stacks that are the same item with the same data. The check that looks for the second copy
used the looser rule, so a copy with different data passed the check and was never taken: the
chance was halved for a bet that was not doubled. Check and burn now use one rule, and a missing
copy gives the bet back and refuses the spin instead of burning half of it.
* The card table paid the winner the pot plus the own stake, so a table handed out 300 credits for
the 200 that were on it. The winner takes the pot now and a draw gives every stake back.
* A hand against the bot dealer paid twice the stake out of nothing, which was an endless credit
fountain: credits buy items through the wheel. The house now pays the profit out of a reserve it
really owns, the interest the bank booked when it handed out a loan. The reserve is shown on the
table, and a house that cannot cover the whole profit says so instead of quietly paying less.
* A player who left the table lost the stake, and the player who stayed took a pot that no longer
contained it. Leaving gives the stake back and the hand goes on without the player who left.
* The card table could deal exactly one hand: the phase never left "finished" and the deal button
did nothing afterwards. The next stake opens the next round.
* A deposit whose price did not fit on the balance any more was stored in the vault and credited for
less than it was worth. The bank refuses such a deposit and the item stays in the slot.
* Hovering the target slot after the value table had been cleared crashed the screen. The tooltip
treats a missing table as a zero value now, the way the catalog tooltip next to it always did.
* The chosen target and count lived in static fields across worlds and servers, so a new session
could open on another server's choice. Both are cleared on logout.
* A spin that survived a logout was never replayed to the client: the prize arrived, the screen
stayed busy and no result was shown. The stop angle is stored with the spin and the result packet
is sent again when the table is opened, so the wheel still lands on the pocket the server rolled.
* The price table crashed a client that knows fewer items than the server: an id the client cannot
resolve was stored as nothing, and the immutable copy of that set does not allow it. Unknown ids
are skipped now.
* The second copy of the modifier maths was removed, so the preview on the screen and the roll on
the server cannot drift apart any more.
* The contracts menu placeholder, which was never opened and carried the wrong menu type, is gone.
* The creative item list wrote the slots of the armour and the off hand into the numbers of the
hotbar, so the item appeared in one place on the screen and in another one on the server. The
slots are translated properly now.
* The declared default of the prize spread (900) was clamped to 100 by the sanitiser, so the number
in the config file never meant anything. The default now says what the code does.
* The revision of the price table now covers the feature switches and the limits as well, so a
table that only changed there is a stale table on the client too.
Announcements in the language of the player
* The big win and the jackpot broadcasts were stitched together out of English words inside
Component.literal, so a Russian client read "won a prize worth ... credits!" in the chat. Both
are translatable keys now, in English and Russian.
* The expensive prize message did build a translatable component and then called getString() on the
server, which froze the sentence into the language of the server for everybody. The component
travels untranslated now and each client renders it in its own language.
Release checks
* The build is green. A live client run loads the mod, enters a world and shuts down with all
dimensions saved and without a single error line.
* The card table recipe asked for minecraft:planks, an item that has not existed since the 1.13
flattening, so it silently failed to load. It takes any plank through the #minecraft:planks tag
now, and the number of crafting recipes the valuation engine sees went from 849 to 850, which is
that very recipe loading for the first time.
* The fortune spark, the particle that marks every win and every jackpot, never reached the particle
atlas, so the celebration was invisible. Forge 47.3.0 removed TextureStitchEvent.Pre in favour of
atlas info JSON files, so the four frames are declared in an atlas file that leaves the vanilla
directory source exactly as it was.
* Three audit scripts under tools/ check every language key including the ones assembled by
concatenation, every texture, sound and subtitle reference, every model, blockstate and particle
frame, the argument counts of the English and Russian strings, and any English prose left inside
Component.literal. Language parity is 405 keys against 405.
* The network protocol moved from 14 to 15, because the state of a card table carries the reserve of
the house now. A client with the old protocol is refused by the channel instead of misreading a
packet.
* textures/gui/upgrader.png and textures/gui/catalog.png are drawn by no screen any more and stay in
the jar as unused art, mostly in the cool blue tones of the earlier style.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects