Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2017, 10:26 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,206
SilverDragonTears is on a distinguished road
Default Hide egg gender

How would I go about hiding the egg's gender?
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 01-21-2017, 10:45 AM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,256
IntoRain is on a distinguished road
Default

You can go to class_ownedadoptable.php and modify the getGender() function to, for example, hide the gender when the adopt is under a certain level. Something like this:

PHP Code:
public function getGender($fetchMode ""){
        
    
$showGenderAtLevel 1;
        
    if(
$this->currentlevel $showGenderAtLevel) {
        
//don't show gender
        
if($fetchMode == Model::GUI) return new Image("picuploads/NO_GENDER.png");//or whatever your image for unknown gender is
        
else return "Unknown";
    }
    else {
        
//show gender
        
if($fetchMode == Model::GUI) return new Image("picuploads/{$this->gender}.png");
        else return 
$this->gender;
    }    
        

__________________


asp.net stole my soul.
Reply With Quote
  #3  
Old 01-21-2017, 12:36 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,206
SilverDragonTears is on a distinguished road
Default

Brilliant! Thank you :)
__________________

Check out SilvaTales
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:08 AM.

Currently Active Users: 458 (0 members and 458 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636