1/10/2024 0 Comments Mudlet movementOnce you create a window and assign it to a container, you never have to worry about positioning it again. All windows under Geyser control are automatically resized as necessary when the main Mudlet window is resized.See examples below and the demos/tests that come with Geyser. For instance, a window could be constrained to have a height of 50% of its container and a width such that the window's right edge is always 20 characters from its container's right edge. However, window positions can also take on percentages and negative pixel and character values. All window positions are specified relative to their container - nothing new there.The biggest difference is in how positions are specified. Geyser is based on traditional GUI concepts and should feel similar to using Java's Swing. To help with complex window management, Geyser steps in. Mudlet provides a nice signal when window resize events happen. Mudlet makes the creation of label, miniconsoles and gauges a quick and easy thing. The Geyser Layout Manager is an object oriented framework for creating, updating and organizing GUI elements within Mudlet - it allows you to make your UI easier on Mudlet, and makes it easier for the UI to be compatible with different screen sizes. 4.3 Create a Window with a resize label.4.1.11 Resize the compass into a square.4.1.4 Create a global table or namespace.2.9.12 Attach your Adjustable Container to a Border.2.9.11 Change Adjustable Container Style.2.9.9 Create a Custom Menu with Custom Items.2.9.7 Custom Save/Load Directories and Slots.2.8.4 Create an extra command line in Mudlet.2.8.2 Bind action to your command line input.2.7.4 Styling the UserWindow border and title area.2.7.3 Disable/enable UserWindow autoDock.2.4.9 Set an action to your miniconsole command line.2.4.8 Enable and use your miniconsole command line.2.4.7 Change your miniconsole background image.2.3.8 Resetting the style with a string.2.3.6 Getting a table of properties and their values.2.2.22.5 Add right click menu to label with already existing left click action.2.2.22.2 Set onClick action for your menu item.2.2.18 Inserting extra spaces and newlines.2.2.15 Adding a hover effect to a label.2.2.13 Aligning text/images inside a label.2.2.12 Avoid stylesheet inheritance by tooltip.2.1.3 Aligning relative to bottom or right sides.* CRLF, otherwise send the straight output sans CRLF. If this is an 'interruption', use the prepended Strcat(i, make_prompt(t)) /* strcpy: OK (i:MAX_SOCK_BUF reserves space) */ If (!t->pProtocol->WriteOOB) /* add a prompt */ Strcat(osb, "\r\n") /* strcpy: OK (osb:MAX_SOCK_BUF-2 reserves space) */ If (STATE(t) = CON_PLAYING & t->character & !IS_NPC(t->character) & !PRF_FLAGGED(t->character, PRF_COMPACT)) * add the extra CRLF if the person isn't in compact mode */ Static int process_output(struct descriptor_data *t) Please Log in or Create an account to join the conversation. Has anyone had any experience with creating GUI's that can point me in the right direction? Reading through the forums and help files that came with the protocol plugins has been helpful, but there are some simple steps I'm clearly missing :D What I am wanting to do is create a custom GUI that updates from tbaMUD server commands. It seems to be using MXP - has this superseded MSDP? Logging into GodwarsII has an automatic Mudlet downloader which gives a nice map, health bars and so on. But when connecting to my locally running copy of tbaMUD it sets MSDP to NO, so this is the first obstacle. invisible MDSP commands are sent from the server to the client and update elements of the GUI Connect to tbaMUD and auto-negotiate will detect MSDP support There are lots of old forum posts around the place particularly from KaVir about implementing nice looking GUIs but being very new to the concept I am lacking some of the assumed knowledge that is required to get this working. That was super exciting until I looked into it further and found that the code to support these is already sitting in tbaMUD!! I've just found out that Graphical User Interfaces are a thing for MUDs!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |