Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions objects/obj_fleet_select/Draw_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ if (player_fleet.just_left){
}
}
}
if (!currently_entered){
currently_entered = keyboard_check(vk_shift);
}

if (owner == eFACTION.Player) and (player_fleet.action==""){
var xx = __view_get( e__VW.XView, 0 );
Expand Down Expand Up @@ -157,7 +154,9 @@ if (owner == eFACTION.Player) and (player_fleet.action==""){
instance_activate_object(obj_star);
}
}

if (!currently_entered){
currently_entered = keyboard_check(vk_shift);
}
if (mouse_check_button_pressed(mb_left) ){
if (!currently_entered && point_distance(mouse_x,mouse_y,player_fleet.x,player_fleet.y)>32 && !keyboard_check(vk_shift)){
instance_destroy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ function draw_warp_lanes(){

var hit_box = [route_coords[0]+dist_x-(warp_width/2),route_coords[1]+dist_y-(warp_height/2), route_coords[0]+dist_x+(warp_width/2) ,route_coords[1]+dist_y+(warp_height/2) ];

var allow_tooltips = (!instance_exists(obj_star_select))
var _allow_tooltips = (!instance_exists(obj_star_select))

if (allow_tooltips && instance_exists(obj_fleet_select)){
if (_allow_tooltips && instance_exists(obj_fleet_select)){

var mouse_consts = return_mouse_consts();

allow_tooltips = !obj_fleet_select.currently_entered || (mouse_consts[0] - __view_get( e__VW.XView, 0 ) > 300);
_allow_tooltips = !obj_fleet_select.currently_entered || (mouse_consts[0] - __view_get( e__VW.XView, 0 ) > 300);
}
var warp_route_tooltip = "Major warp route to {0} (x4 travel speed for warp capable crafts)\n\nHold Shift and click Left Mouse Button to see destination.";
if (scr_hit(hit_box)){
Expand All @@ -158,7 +158,7 @@ function draw_warp_lanes(){
var to = instance_nearest(route_coords[2],route_coords[3], obj_star);
// warp_point_hover = true;

if (allow_tooltips){
if (_allow_tooltips){
tooltip_draw(string(warp_route_tooltip, to.name));
}

Expand Down Expand Up @@ -193,7 +193,7 @@ function draw_warp_lanes(){
var to = instance_nearest(route_coords[0], route_coords[1], obj_star);
// warp_point_hover = true;

if (allow_tooltips){
if (_allow_tooltips){
tooltip_draw(string(warp_route_tooltip, to.name));
}

Expand Down