mirror of
				https://github.com/AquaMorph/Droplets.git
				synced 2025-10-31 08:23:18 +00:00 
			
		
		
		
	Droplet switch menu names
This commit is contained in:
		| @@ -15,3 +15,15 @@ void DropletManager::SetSelected(DropletState state) { | ||||
| DropletState DropletManager::GetSelected() { | ||||
|   return selected_drop; | ||||
| } | ||||
|  | ||||
| std::string DropletManager::OtherStateName(DropletState state) { | ||||
|   switch (state) { | ||||
|   case DropletState::kLeft: | ||||
|     return "Right"; | ||||
|   case DropletState::kRight: | ||||
|     return "Left"; | ||||
|   case DropletState::kFull: | ||||
|   default: | ||||
|     return ""; | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -35,6 +35,14 @@ public: | ||||
|    * @return selected droplet | ||||
|    */ | ||||
|   DropletState GetSelected(); | ||||
|  | ||||
|   /* | ||||
|    * Returns the name of the other droplet | ||||
|    * | ||||
|    * @param state droplat state of the current | ||||
|    * @return other droplet name | ||||
|    */ | ||||
|   std::string OtherStateName(DropletState state); | ||||
| }; | ||||
|  | ||||
| #endif // CASCADE_DROPLETS_DROPLET_MANAGER_H_ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user