Fix for typing in textboxes when trying to move the camera in world view. Fixed debugging property exceptions in ResourceBaseTypes

This commit is contained in:
dexyfex 2018-03-04 21:35:33 +11:00
parent f0cdd9ecf0
commit 6da590530b
3 changed files with 16 additions and 3 deletions

View File

@ -881,7 +881,7 @@ namespace CodeWalker.GameFiles
public bool IsReadOnly public bool IsReadOnly
{ {
get { throw new NotImplementedException(); } get { return false; }
} }
public bool Remove(T item) public bool Remove(T item)
@ -1071,7 +1071,7 @@ namespace CodeWalker.GameFiles
public bool IsReadOnly public bool IsReadOnly
{ {
get { throw new NotImplementedException(); } get { return false; }
} }
public bool Remove(T item) public bool Remove(T item)
@ -1220,7 +1220,7 @@ namespace CodeWalker.GameFiles
public bool IsReadOnly public bool IsReadOnly
{ {
get { throw new NotImplementedException(); } get { return false; }
} }
public bool Remove(T item) public bool Remove(T item)

View File

@ -2030,6 +2030,14 @@ namespace CodeWalker.Rendering
{ {
RenderDrawable(pch.Drawable1, arch, ent, txdhash); RenderDrawable(pch.Drawable1, arch, ent, txdhash);
} }
else
{ }
if ((pch.Drawable2 != null) && (pch.Drawable2.AllModels.Length != 0))
{
RenderDrawable(pch.Drawable2, arch, ent, txdhash);
}
else
{ }
} }
} }
} }

View File

@ -5506,6 +5506,11 @@ namespace CodeWalker
case MouseButtons.Right: MouseRButtonDown = true; break; case MouseButtons.Right: MouseRButtonDown = true; break;
} }
if (!ToolsPanelShowButton.Focused)
{
ToolsPanelShowButton.Focus(); //make sure no textboxes etc are focused!
}
MouseDownPoint = e.Location; MouseDownPoint = e.Location;
MouseLastPoint = MouseDownPoint; MouseLastPoint = MouseDownPoint;