Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mejora] Tooltip iguales que el rediseño #371

Closed
jonamix-ar opened this issue Aug 22, 2020 · 1 comment
Closed

[Mejora] Tooltip iguales que el rediseño #371

jonamix-ar opened this issue Aug 22, 2020 · 1 comment
Assignees
Labels
Done Issues that were labeled as a task, feature or enhancement Enhancement Issues that require improvements
Milestone

Comments

@jonamix-ar
Copy link

jonamix-ar commented Aug 22, 2020

Leyenda Ogame
leyenda 2

Leyenda XGProyect
xgp

Lenguaje
Spanish

    'gl_administrator' => 'Administrador',
    'gl_strong_player' => 'Jugador fuerte',
    'gl_week_player' => 'Jugador débil (novato)',
    'gl_vacation' => 'Modo vacaciones',
    'gl_banned' => 'Bloqueado',
    'gl_inactive_seven' => 'Inactivo 7 días',
    'gl_inactive_twentyeight' => 'Inactivo 28 días',
    'gl_a' => 'A',
    'gl_s' => 'f',
    'gl_w' => 'd',
    'gl_v' => 'v',
    'gl_b' => 'b',
    'gl_i' => 'i',
    'gl_I' => 'I',
  'gl_administrator' => 'Administrator',
   'gl_strong_player' => 'Stronger Player',
   'gl_week_player' => 'Weaker Player (newbie)',
   'gl_vacation' => 'Vacation Mode',
   'gl_banned' => 'Banned',
   'gl_inactive_seven' => '7 days inactive',
   'gl_inactive_twentyeight' => '28 days inactive',
   'gl_a' => 'A',
   'gl_s' => 's',
   'gl_w' => 'n',
   'gl_v' => 'v',
   'gl_b' => 'b',
   'gl_i' => 'i',
   'gl_I' => 'I',
<td class="c">
                <a href="#" style="cursor: pointer;" onmouseover='return overlib("<table width=150> <tr> <td class=c colspan=2>{gl_legend}</td> </tr> <tr> <td style=width: 20px;><span style=color:#f48406 !important;>{gl_a}</span></td> <td width=220>{gl_administrator}</td> </tr> <tr> <td style=width: 20px;><span style=color:#f00 !important;>{gl_s}</span></td> <td width=220>{gl_strong_player}</td> </tr> <tr> <td style=width: 20px;><span style=color:lime !important;>{gl_w}</span></td> <td width=220>{gl_week_player}</td> </tr> <tr> <td style=width: 20px;><span style=color:aqua !important;>{gl_v}</span></td> <td width=220>{gl_vacation}</td> </tr> <tr> <td style=width: 20px;><span style=color:#fff !important;><s>{gl_b}</s></span></td> <td width=220>{gl_banned}</td> </tr> <tr> <td style=width: 20px;><span style=color:#6E6E6E !important;>{gl_i}</span></td> <td width=220>{gl_inactive_seven}</td> </tr> <tr> <td style=width: 20px;><span style=color:#4F4F4F !important;>{gl_I}</span></td> <td width=220>{gl_inactive_twentyeight}</td> </tr></table>", STICKY, MOUSEOFF, DELAY, 750, CENTER, OFFSETY, -150);' onmouseout='return nd();'>
                    {gl_legend}
                </a>
            </td>

ogame
xgp

Ogame
PlanetaPrinciopañl
XGP
XGP ahora

Galaxia
Usuarios Bloque

<a style="cursor: pointer;" onmouseover="return overlib('<table width=190> <tr> <td class=c colspan=2>{gl_player}: {username} </td> </tr> <tr><td>{gl_in_the_rank}<a href=game.php?page=statistics&who=player&start={start}>{current_rank}</a></td></tr> <tr> {actions} </tr></table>', STICKY, MOUSEOFF, DELAY, 750, CENTER, OFFSETX, -40, OFFSETY, -40);" onmouseout="return nd();">
    {status}
</a>

Lenguaje

Spanish
'gl_player' => 'Jugadores ',
'gl_in_the_rank' => 'Clasificación: ',
English
'gl_player' => 'Player',
'gl_in_the_rank' => ' Ranking: ',

Galaxia Planeta

private function planetBlock()
    {
        $action['spy'] = '';
        $action['phalanx'] = '';
        $action['attack'] = '';
        $action['hold_position'] = '';
        $action['deploy'] = '';
        $action['transport'] = '';
        $action['missile'] = '';

        // GLOBAL
        $action['transport'] = $this->transportLink(self::PLANET_TYPE);

        // ONLY IF IS NOT THE CURRENT USER
        if ($this->row_data['user_id'] == $this->current_user['user_id']){
            $action['deploy'] = '';
            $action['transport'] = '';
            $action['link'] = $this->langs->line('gl_no_action');
        }


        if ($this->row_data['user_id'] != $this->current_user['user_id']) {
            $action['attack'] = $this->attackLink(self::PLANET_TYPE);
            $action['spy'] = $this->spyLink(self::PLANET_TYPE);

            // HOLD POSITION ONLY IF IS A FRIEND
            if ($this->isFriendly()) {
                $action['hold_position'] = $this->holdPositionLink(self::PLANET_TYPE);
            }
        }

        // ONLY IF IS THE CURRENT USER
        /*if ($this->row_data['user_id'] == $this->current_user['user_id']) {
            $action['deploy'] = $this->deployLink(self::PLANET_TYPE);
        }*/

        // MISSILE
        if ($this->isMissileActive()) {
            $action['missile'] = $this->missileLink(self::PLANET_TYPE);
        }

        // PHALANX
        if ($this->isPhalanxActive()) {
            $action['phalanx'] = $this->phalanxLink(self::PLANET_TYPE);
        }

        // PARSE THE DATA
        $parse = $this->langs->language;
        $parse['name'] = $this->row_data['planet_name'];
        $parse['galaxy'] = $this->galaxy;
        $parse['system'] = $this->system;
        $parse['planet'] = $this->planet;
        $parse['image'] = strtr(DPATH, ['\\' => '/']) . 'planets/small/s_' . $this->row_data['planet_image'] . '.jpg';
        $parse['links'] = '';

        // LOOP THRU ACTIONS
        foreach ($action as $to_parse) {
            if ($to_parse != '') { // SKIP EMPTY ACTIONS
                $parse['links'] .= $to_parse . '<br />';
            }
        }

        return $parse;
    }

Lenguaje Español
'gl_no_action' => 'No hay acciones disponibles.',
Lenguaje Ingles
'gl_no_action' => 'No actions available.',

<a style="cursor: pointer;" onmouseover='return overlib("<table width=240><tr><td class=c colspan=2>{gl_planet} {name}</td></tr><tr><th width=33> [{galaxy}:{system}:{planet}]<br><img src={image} height=33 width=38 /></th><th>{links}</th></tr></table>", STICKY, MOUSEOFF, DELAY, 750, CENTER, OFFSETX, -40, OFFSETY, -40);' onmouseout='return nd();'>
    <img src="{image}" height="30px" width="30px">
</a>

@jonamix-ar jonamix-ar changed the title [Mejora] Leyenda igual que ogame [Mejora] Tooltip iguales que el rediseño Aug 22, 2020
@LucasKovacs LucasKovacs added this to the v3.2.0 milestone Aug 30, 2020
@LucasKovacs LucasKovacs self-assigned this Aug 30, 2020
@LucasKovacs LucasKovacs added the Enhancement Issues that require improvements label Aug 30, 2020
LucasKovacs added a commit that referenced this issue Oct 25, 2020
LucasKovacs added a commit that referenced this issue Oct 25, 2020
@LucasKovacs
Copy link
Member

@FGServers esto fue implementado. Hice muchos otros cambios para seguir al juego original. El punto "Galaxia Planeta", no era correcto, fijate como lo implemente. Agregue ademas modo vacaciones.

@LucasKovacs LucasKovacs added the Done Issues that were labeled as a task, feature or enhancement label Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Done Issues that were labeled as a task, feature or enhancement Enhancement Issues that require improvements
Projects
None yet
Development

No branches or pull requests

3 participants