private static function getFeel($field, SR_Player $member, $sign) { $FAL = false; // BG $wht = GWF_IRCUtil::WHITE; $blk = GWF_IRCUtil::BLACK; // FG $grn = GWF_IRCUtil::GREEN; // $lgn = GWF_IRCUtil::LIGHT_GREEN; $blk = GWF_IRCUtil::BLACK; $ong = GWF_IRCUtil::ORANGE; $red = GWF_IRCUtil::RED; $bwn = GWF_IRCUtil::BROWN; $b = array(1111, $FAL, 1111, $FAL, $FAL, $FAL, 1111, $FAL, 1111, 1111); $bg = array($wht, $wht, $wht, $wht, $wht, $wht, $wht, $wht, $wht, $wht); $fg = array($red, $red, $ong, $ong, $bwn, $bwn, $blk, $blk, $grn, $grn); $feel = min(round(($member->get($field) / 10000 + 1.0) / 3.0 * 10), 9); return GWF_IRCUtil::boldcolor($sign . $feel, $b[$feel], $fg[$feel], $bg[$feel]); }
public function sendPRIVMSG($to, $message) { $this->queue[] = array('p', $to, GWF_IRCUtil::parseCleanState($message)); }
public static function andColorsEnabled($yes = true) { self::$COLORS = self::$COLORS && $yes ? true : false; }
public function resetUIStates() { GWF_IRCUtil::setEnabled(); }