Update error messages, add InventoryFolder enumerable
This commit is contained in:
parent
689e22a27d
commit
f9453612d3
2 changed files with 37 additions and 1 deletions
34
lib/pages/opensim/Inventory.dart
Normal file
34
lib/pages/opensim/Inventory.dart
Normal file
|
@ -0,0 +1,34 @@
|
|||
enum InventoryFolder {
|
||||
Texture(id: 0, name: "Textures"),
|
||||
Sound(id: 1, name: "Sounds"),
|
||||
CallingCard(id: 2, name: "Calling Cards"),
|
||||
Landmark(id: 3, name: "Landmarks"),
|
||||
Clothing(id: 5, name: "Clothing"),
|
||||
Objects(id: 6, name: "Objects"),
|
||||
ROOT(id: 8, name: "My Inventory"),
|
||||
Scripts(id: 10, name: "Scripts"),
|
||||
BodyParts(id: 13, name: "Body Parts"),
|
||||
Trash(id: 14, name: "Trash"),
|
||||
Screenshots(id: 15, name: "Photo Album"),
|
||||
LostAndFound(id: 16, name: "Lost & Found"),
|
||||
Animations(id: 20, name: "Animations"),
|
||||
Gestures(id: 21, name: "Gestures"),
|
||||
Favorites(id: 23, name: "Favorites"),
|
||||
CurrentOutfit(id: 46, name: "Current Outfit"),
|
||||
Outfit(id: 47, name: "Outfit"),
|
||||
MyOutfits(id: 48, name: "My Outfits"),
|
||||
// 49 Mesh
|
||||
//50 Inbox
|
||||
//51 Outbox
|
||||
//52 BasicRoot
|
||||
MarketplaceListings(id: 53, name: "Marketplace Listings"),
|
||||
MarketplaceStock(id: 54, name: "Marketplace Stock"),
|
||||
// 55 Marketplace version
|
||||
Settings(id: 56, name: "Settings"),
|
||||
Materials(id: 57, name: "Materials"),
|
||||
Suitcase(id: 100, name: "My Suitcase");
|
||||
|
||||
final int id;
|
||||
final String name;
|
||||
const InventoryFolder({required this.id, required this.name});
|
||||
}
|
|
@ -20,7 +20,7 @@ $last = "";
|
|||
$rezday = 0;
|
||||
$title = "";
|
||||
$login = false;
|
||||
$reason = "Invalid password";
|
||||
$reason = "Unauthorized";
|
||||
$active = false;
|
||||
|
||||
$clientKey = $js['clientKey'];
|
||||
|
@ -59,6 +59,8 @@ if($clientKey == CLIENTPSK) {
|
|||
|
||||
$reason = "success";
|
||||
$login=true;
|
||||
} else {
|
||||
$reason = "Invalid Password";
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue