mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-13 17:35:33 -10:00
Port map: the merchant scroller's press starts the drag
MerchantScreen.mouseClicked said clicking the scroller does not start a drag. Game::merchant_click sets dragging inside the 139-px track past seven offers and Game::merchant_drag follows the pointer, so the note now describes that.
This commit is contained in:
1 parent
0cf1b3d209
commit
0b1c2fbb0f
1 file changed
+1
-1
@@ -50,7 +50,7 @@ MerchantScreen.extractButtonArrows inline crates/horizon-client/src/game/trading
|
||||
MerchantScreen.extractAndDecorateCostA inline crates/horizon-client/src/game/trading.rs::Game::draw_merchant discount: base count struck through, new count drawn (merchant.rs cost_a)
|
||||
MerchantScreen.mouseScrolled port crates/horizon-client/src/game/trading.rs::Game::merchant_scroll gap: minor: one offer per wheel step; vanilla uses the float scroll amount
|
||||
MerchantScreen.mouseDragged port crates/horizon-client/src/game/trading.rs::Game::merchant_drag the scroller takes presses only past seven offers and picks the nearest one
|
||||
MerchantScreen.mouseClicked port crates/horizon-client/src/game/trading.rs::Game::merchant_click gap: player: clicking the scroller does not start a drag (see mouseDragged); the offer buttons work
|
||||
MerchantScreen.mouseClicked port crates/horizon-client/src/game/trading.rs::Game::merchant_click a press inside the scroller's 139-px track starts the drag (dragging set, merchant_drag follows the pointer), only past seven offers; otherwise the offer buttons are hit-tested
|
||||
MerchantScreen.TradeOfferButton.extractToolTip inline crates/horizon-client/src/game/trading.rs::Game::draw_merchant item tooltip for cost A, cost B or the result under the hovered offer
|
||||
MinecartCommandBlockEditScreen.populateAndSendPacket port crates/horizon-client/src/game/command_minecarts.rs::Game::open_cart_command_block a game master's interact opens the editor on the cart's BaseCommandBlock, and the edit is written back to the cart
|
||||
PageButton.extractContents inline crates/horizon-client/src/game/books.rs::Game::draw_book page arrows with their hover sprites (page_buttons)
|
||||
|
||||
|
Reference in new issue
Block a user