Thread: Mys 1.3.4 Achievments system
View Single Post
  #4  
Old 01-18-2017, 09:57 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 64,924
Dinocanid is on a distinguished road
Default

It would go in like this (following the example in step 2):
PHP Code:
    public function index(){ 
        
$mysidia Registry::get("mysidia"); 
        
$document $this->document;    
        
$status $mysidia->user->getstatus();
        
        
$document->setAlign(new Align("center""middle"));
        
$document->setTitle("Achievements");
        
        
$document->add(new Paragraph());
        
$document->add(new Comment("<h2> Unlocked </h2>"));
        if(
$status->fullpantry == "unlocked"){
         
$document->add(new Comment("
                <div class=\"s_panel sc_item\">
                <img rel='tooltip' title='<em>Achievement Description<em>' src='InsertImageHere'/}>
                <br/>
                  <b>Achievement Name</b>
                  <br/>
                  
                 </div>"
FALSE));
         }
                 
                
$document->add(new Paragraph());
                
$document->add(new Comment("<h2> Locked </h2>"));
                
                
                if(
$status->fullpantry == "locked"){
                
$document->add(new Comment("
                <div class=\"s_lockedpanel sc_item\">
                <img rel='tooltip' title='<em>Own 10 or more adoptables to unlock<em>' src='InsertImageHere'/}>
                <br/>
                  <b>???</b>
                  <br/>
                 </div>"
FALSE));
                 }

if(
$status->OwnCertainAdopt == "locked"){ 
                
$document->add(new Comment(
                <div class=\"s_lockedpanel sc_item\"> 
                <img rel='tooltip' title='<em>Own InsertSpeciesHere to unlock<em>' src='IMAGE'/}> 
                <br/> 
                  <b>???</b> 
                  <br/>  
</div>"
FALSE));
    } 
__________________
Reply With Quote