Advertisement
flarn2006

Untitled

May 24th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. function store_clothing_outfit_create()
  2.  
  3.     local success, reason_title, reason_body
  4.     success, reason_title, reason_body = pcu_can_create_outfit()
  5.     if success == true then
  6.         -- disable switching modes here
  7.         store_clothing_set_hints(false)
  8.    
  9.         game_vkeyboard_input("OUTFIT_NAME_TAG", "OUTFIT_NAME_ENTRY_DIALOG", 16, "OUTFIT_NAME_TAG", "store_clothing_outfit_name_cb", true)
  10.     else
  11.         Store_common_popup:populate_list(Ok_choice, 1, STORE_COMMON_LIST_SIZE, 1)
  12.         Store_common_popup:set_title(reason_title)
  13.         Store_common_popup:set_text(reason_body)       
  14.         Store_common_popup:nav_enable(true, "store_clothing_fail_msg", "store_clothing_popup_nav")
  15.         Not_popup_grp:set_alpha(.5)
  16.         Store_logo_grp:set_alpha(.5)
  17.         Active_list:set_visible(false)
  18.        
  19.         store_clothing_enable_mouse(false)
  20.     end
  21. end
  22.  
  23. -- Callback from virtual keyboard.
  24. --
  25. function store_clothing_outfit_name_cb(success)
  26.     if success == true then
  27.         pcu_create_outfit("VKEYBOARD_RESULTS")
  28.     end
  29.    
  30.     -- enable switching modes here
  31.     store_clothing_set_hints(Store_clothing_loaded_from_crib == false)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement