Center item icons in framed wells and verify card containment
This commit is contained in:
parent
8c9b8431bd
commit
23969031c5
3 changed files with 3 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ Objective: preserve the accepted fast full-screen menu design while containing t
|
|||
## Scope
|
||||
|
||||
- DuneMenus 2.0.2: bounded compact summaries and titles; price/stock/seller stay visible in summaries and an optional Details control opens one selected full-lore panel above the grid without executing the purchase, without adding a confirmation action. Private-use inventory glyphs and legacy formatting codes are removed from display text. House-adviser wording avoids assigning every adviser the Mentat profession. Council actions use a balanced grid; the Your House arrow is an ordinary action rather than a paging control.
|
||||
- Local illustrated website logo, proportionally contained in the header. Canonical PNG SHA256 267fe0d0b5adb4f2fb657d1d6827d030e7f837c94335d0a3643210b908f47931. Menu item icons resolve the actual ItemStack item_model to an existing central-pack flat texture. No quality/mark is inferred from a name. Ordinary native blocks with a verified same-ID block texture use that flat surface preview, not a native 3D render. Unsupported dynamic/complex models retain a semantic fallback; this is not a general 3D item renderer.
|
||||
- Local illustrated website logo, proportionally contained and centred in the header brand area. Item icons and semantic fallbacks are horizontally centred in small framed wells. Canonical PNG SHA256 267fe0d0b5adb4f2fb657d1d6827d030e7f837c94335d0a3643210b908f47931. Menu item icons resolve the actual ItemStack item_model to an existing central-pack flat texture. No quality/mark is inferred from a name. Ordinary native blocks with a verified same-ID block texture use that flat surface preview, not a native 3D render. Unsupported dynamic/complex models retain a semantic fallback; this is not a general 3D item renderer.
|
||||
- Artwork is packaged from committed central inputs and unpacked at plugin startup. Model/image lookups are cached. There are no remote artwork requests on menu opening.
|
||||
- GUI 1.1.36 routes /exchange, namespaced aliases and /drgui exchange to the existing native ExchangeMenus.open path before the supplied-command interceptor. That is the same service used by the working GUI button and remains displayed by the fast ServiceMenu renderer.
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -15,6 +15,7 @@ public class RendererVerification {
|
|||
for(Card card:cards){
|
||||
var element=page.document.selectFirst("[data-slot='"+card.slot()+"']");var bounds=frame.boundsOf(element);
|
||||
if(bounds==null||bounds.getWidth()<=0||bounds.getHeight()<=0)throw new AssertionError(id+" invisible slot "+card.slot());
|
||||
var emblem=element.selectFirst(".emblem");if(emblem!=null&&!id.equals("travel")&&!card.material().equals("arrow")){var box=frame.boundsOf(emblem);if(box!=null&&Math.abs(box.getCenterX()-bounds.getCenterX())>1)throw new AssertionError(id+" icon not centered "+card.slot()+" "+box+" vs "+bounds);}
|
||||
for(var text:element.select("h2,p")){var box=frame.boundsOf(text);if(box!=null&&(box.getMinX()<bounds.getMinX()-1||box.getMaxX()>bounds.getMaxX()+1||box.getMinY()<bounds.getMinY()-1||box.getMaxY()>bounds.getMaxY()+1))throw new AssertionError(id+" text outside card "+card.slot()+" text="+box+" card="+bounds);}
|
||||
double scroll=Math.max(0,Math.min(frame.maxScroll(),bounds.getCenterY()-260));var visible=HtmlRenderer.render(page,1536,896,1.5,scroll,Selector.State.NONE);
|
||||
var at=visible.elementAt(bounds.getCenterX(),bounds.getCenterY()-scroll);var button=at==null?null:at.closest("[data-slot]");
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff