iTranslated by AI
Released a Web app to turn anything into a Werewolf-style game (Challenging modeless UI)
What is this article?
I created and released a web application using Rust, so I'm going to give a brief introduction and talk about the modeless UI design, which is a key focus point of the app.
Application Introduction
What I built
What is this?
Simply put, it's a web app that makes it easy to add social deduction elements (the act of progressing through a game while hiding your true identity) to the games you usually play.
The host can freely set roles, which are then sent to each player's browser randomly and exclusively.
Since the host and players only need to be able to access the room URL from their own browsers, it can be used easily both on-site and off-site.
Expected Use Cases
- In team-based cooperative games like Splatoon, play by introducing one player as a "traitor" (werewolf) who intentionally tries to make their teammates lose.
- Adding original custom roles to games like Among Us.
Why I Decided to Rebuild It
As an aside, I actually made a similar app a year ago. However, because I prioritized development speed and learning, leading to an inflexible design and library selection, it became difficult to improve the UI or add new features. Therefore, I decided to rebuild it from scratch.
Application Architecture
The application architecture is quite simple.
With Firestore as the sole backend, the UI is rendered in real-time by subscribing to data on Firestore from static HTML.
Main Technologies Used
- Firestore
- Rust
- Yew
- TailwindCSS
Challenge of Modeless UI (Still a work in progress)
One of the challenges I took on when building this app was "realizing a modeless UI."
What is Modeless?
Before explaining what modeless is, I will quote the following explanation regarding "modes":
A mode in a UI is a state where the meaning of a certain operation changes depending on the situation, thereby limiting the operations currently available to the user or forcibly fixing the sequence of operations.
From Human Interface Guidelines / Modeless (Sociomedia)
To give an analogy for modeless, an open-world RPG might be easy to understand.
In other words, it refers to a UI where the user can achieve their goals in any way they like within open choices, rather than operating the app within a sequence or constraints determined by the app.
Incidentally, the counterpart term is "modal," which is more famous. The term "modal (dialog)" comes from the role of the UI displaying a dialog in the foreground to put the user into a specific mode.
Why Modeless?
In "Nandemo Jinro," there are mainly two tasks that the host user needs to perform:
- Share the room URL to gather players
- Set up the roles
If we were to design a UI to execute these tasks modally, it would likely be a UI that presents screens to the host one by one, such as Gather Players -> Set Up Roles or vice versa.
However, the task of "gathering players" is more an action for the joining players rather than the host, so the host can only wait during that time.
In a modal UI, users can only perform actions determined by the current mode.
So, what happens with a modeless UI?
The host can perform the "Set up roles" task while simultaneously "gathering players."
Specifically, the host handles tasks as follows:
- Share the room URL
- Input role settings (while other players are joining the room)
- Close room entry
It's efficient because they can input the role settings while other players are joining.
Also, they can go back to previous screens to review or correct operations they've already performed.
This is the motivation behind wanting to make this app's UI modeless.
The Difficulty of Modeless UI
While modeless UI is attractive, I found through implementation that it is a considerably difficult UI to design.
Increase in states to consider
First, the number of state patterns to consider for each UI increases.
For example, if it were implemented modally, there would be no need to consider the state "room entry is already closed" in the UI for gathering users.
This is because the moment the room is closed, the screen moves to the next one, and users cannot freely return to that screen.
However, by making it modeless, I had to consider the possibility of that UI being displayed in any state, which simply increased the patterns to design and the amount of implementation.
UI transitions are no longer self-evident
Furthermore, because "what to do next" is left to the user's will, the transition destination after completing a task is no longer self-evident.
In a modal UI, the next transition is determined by the application's constraints, such as "B after A," but in a modeless UI, the application cannot judge whether to go to B or C after A is finished. Therefore, it's necessary to implement something like "adding one step to let the user transition freely" or "forcing a non-self-evident transition."
What kind of UI was created
I placed the following navigation at the top of the host's operation UI:

This allows the host to transition to another UI (except for the rightmost button) in any state, enabling them to switch to the next task before the current one is completed.
Conversely, the host can also perform tasks in a determined order, just like a modal UI, without thinking.
As a challenge, since I'm trying to balance guiding users with the freedom of modelessness, the resulting UI is somewhat halfway and counter-intuitive.
The fact that I haven't beautifully solved the difficulties of modeless UI comes from my low skill as a designer, and I'd love to improve my skills and refine it in the future.
Retrospective
Personally, this app creation was full of challenging elements.
However, I feel that my design and implementation in my spare time couldn't keep up with the "I want to do this and that" mentality. If someone uses this app from now on, I'm thinking of continuously improving it!
Discussion