Don't Starve

Don't Starve

211 ratings
Draggable Container Interface
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
23.368 KB
Jan 3 @ 8:39pm
Apr 7 @ 1:47am
11 Change Notes ( view )

Subscribe to download
Draggable Container Interface

In 1 collection by iceamei冰糖
我的 DS 懒人包
21 items
Description
What are the functions of this mod?
Use the mouse to drag the display position of the container interface on the screen (short for "container position") and store location data


Function Menu:
1. Independently dragging container position
2. Dragging container positions of similar containers
3. Use 1+2 both
4. Restore dragging positions

Function Explanation:
1. Independently dragging container position
●Using a combination of keys: Ctrl+Right Mouse Button, drag the container interface and store the current container position.
●This position adjustment only applies to the current container and stores data in the current save slot, without sharing location storage with other save slots. (For example, if I have three chests A, B, and C, and drag chest A to adjust the container position to the bottom right corner of the screen, then other chests such as B and C will still be in the default position in the upper middle of the screen. Using another save slot will not retain the storaged container position.)
●The combination key Ctrl can be adjusted to: Do not use, Ctrl (default), Alt, Shift, a total of 4 types. (Configuration: CombKey)
●The combination key Right Mouse Button can be adjusted to two types: Left Mouse Button and Right Mouse Button (default). (Configuration: MouseKey)


2. Dragging container positions of similar containers
●Using a combination of keys: Ctrl+Alt+Right Mouse Button, drag the container interface and store the position of similar containers.
●Similar Containers refer to the Same Entity (i.e., the same prefab in code).
●This position adjustment will take effect on all similar containers and can share position data across save slots. For example, if I have three chests("treasurechest" in code), A, B, and C, and drag chest A and adjust the container position to the bottom right corner of the screen, then the positions of other chests, such as B and C, will also be adjusted to the same position in the bottom right corner of the screen. If using another save slot, any chests will retain its storage position without the need for re dragging.
●The combination of Ctrl+Alt keys can be adjusted to three types: Ctrl+Alt (default), Ctrl+Shift, and Alt+Shift. (Configuration: SameCmbK)
●The combination key Right Mouse Button can be adjusted to two types: Left Mouse Button and Right Mouse Button (default). (Configuration: MouseKey)


3. Use 1+2 both, the position of the container that has been independently dragged is the position after independent drag, and the position of the container that has not been independently dragged is the position after similar drag.

4. Restore dragging
●Secondary Mouse Combination Key: Another key of the configured combination Mouse Key (for example, if configured as the Right Mouse Button, the secondary mouse button is the Left Mouse Button).
●Restore dragging operation: Similar to dragging operation, switching the primary mouse button to the secondary mouse button can restore the corresponding dragging (such as Ctrl+Right Mouse Button for independent drag, Ctrl+Left Mouse Button for restoring independent drag, the same applies to similar drag).



Introduction to other configuration:
●SlotDrag: When enabled, empty slots in the container can also be dragged to adjust the position of the container. If not enabled, only container background image can be performed for dragging operations (without a container background image, dragging is not possible). Enabling this option does not mean that the position of each slot can be dragged separately, and only empty slots of the container can be dragged. (If there are no additional requirements, it is recommended to disable this option to save game performance)
●SelfDrag: A switch for independent dragging.
●SameDrag: A switch for dragging similar containers.
●TipStr: Display switch for hover text when it can be dragged.
●SecTipStr: Secondary prompt text, a hover text display switch for restoring drag operations when drag is possible.

For other modders:
●Using the console to input "IAI_DRAGCON.Clear()" can clear the position save data for dragging similar containers, and reopen the corresponding container to restore the default position.
●After enabling this mod, all containers can be dragged by default. Coding the container entity "inst:AddTag("no_drag")" can prevent the container from being dragged.

iceamei冰糖
14 Comments
KD0.01 Attenzione Apr 28 @ 12:13am 
nice
Roxy Apr 20 @ 6:23am 
nice
Aazerra Apr 19 @ 1:49pm 
great
Solar Mar 18 @ 5:12am 
great
不错
cjmn Mar 12 @ 4:51am 
666
Osn1n Mar 8 @ 1:36am 
great
Hold1R Feb 29 @ 1:07pm 
nice
Joefizz32 Feb 23 @ 9:04pm 
very nice
Rexalir Feb 13 @ 12:28pm 
good