mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Made window bigger in map connections editor, fixed a couple of bugs, added Generation data to pokemon PBS files
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
module Mouse
|
||||
module_function
|
||||
# Returns the position of the mouse relative to the game window.
|
||||
def getMousePos(catch_anywhere=false)
|
||||
return nil unless System.mouse_in_window || catch_anywhere
|
||||
return Input.mouse_x, Input.mouse_y
|
||||
end
|
||||
|
||||
end
|
||||
@@ -112,7 +112,7 @@ end
|
||||
def getConstantName(mod,value)
|
||||
mod = Object.const_get(mod) if mod.is_a?(Symbol)
|
||||
for c in mod.constants
|
||||
return c if mod.const_get(c.to_sym)==value
|
||||
return c.to_s if mod.const_get(c.to_sym)==value
|
||||
end
|
||||
raise _INTL("Value {1} not defined by a constant in {2}",value,mod.name)
|
||||
end
|
||||
@@ -120,7 +120,7 @@ end
|
||||
def getConstantNameOrValue(mod,value)
|
||||
mod = Object.const_get(mod) if mod.is_a?(Symbol)
|
||||
for c in mod.constants
|
||||
return c if mod.const_get(c.to_sym)==value
|
||||
return c.to_s if mod.const_get(c.to_sym)==value
|
||||
end
|
||||
return value.inspect
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user