Isometric tiles on wrong positions if the mouse points at a negative world coordinate

I am using this approach:

http://clintbellanger.net/articles/isometric_math/

Basically, you can calculate the iso coordinates based on the screen coordinates. What I am doing is, getting the actual world position the mouse is pointing at using get_mouse_global_position() and convert this position to isometric values.

Then I translate those coordinates back to world space coordinates to actually display the sprite.

Problem is, that when the world coordinates come from a negative position, the tiles get offset by almost an entire tile amount. Here is the relevant code.

The get_coord() function returns the actual world position of the tile used to display the Sprite

func get_coord(pos : Vector2):     var t = Vector2()     var e = screen_to_iso(pos)     t = iso_to_screen(e)     print(pos)     print(e)     print(t)     return t     pass var buildings  func screen_to_iso(pos :Vector2):     var flipx = 0     var flipy = 0     var t = Vector2()     var x_size = size/2     var y_size = size/4     t.x = int((pos.x/x_size) + (pos.y/y_size))/2     t.y = int((pos.y/y_size) - (pos.x/x_size))/2     return t     pass  func iso_to_screen(pos : Vector2):     var t = Vector2()     var x_size = size/2     var y_size = size/4     t = Vector2((pos.x-pos.y)*x_size, (pos.x+pos.y)*y_size)     return t     pass 

I can’t seem to figure out a way

Do ball bearings require more than 1 save when moving across the tiles?

Ball bearings cover a square area that is 10 feet on a side. A creature moving across the covered area must succeed on a DC 10 Dexterity saving throw or fall prone. But is this for every square they move across?

And if it is once per ball bearings, what happens if they enter a 2nd patch of ball bearings that is connected to the 1st?

How Can A BBEG Mainpulate Tiles With Anti-Magic On It’s Turn?

My players will be fighting a BBEG tonight that they will have no choice but to face in its lair. Part of the lair design is that each tile in the room is anti-magic and I wanted the BBEG to be able to manipulate which tiles are or are not activated during its turn.

Could the BBEG use item interaction to telepathically control the anti-magic tiles?

Sparkle Grey Quartz Stone Tiles suppliers

[ About us ]
Xiamen East Phenix Imp. & Exp. Co. Ltd. is a stone manufacturer locates in the beautiful southeast coastal city —- Xiamen that well known for its special economic zones and free trade port advantages. Through years of development, we owned our own production base, and gradually developed to a trading enterprise together with producing, processing, sales and export.      

Our factory is located in the famous stone town – Shijing, Nanan. Our products covering natural stone, granite, marble, and artificial quartz stone, artificial marble stone, crystallized glass stone and etc. Specialized in Big slabs, Kitchen countetops, bathroom vanity tops, Worktops, Table Top, Island, Special Shapes, flooring tiles and wall cladding, which is widely used in Hotel, Apartment, Condo, Shopping Mall, and other projects etc…
Since establishment, Good Reputation, High Quality and Sincere Service had won us the reliance and trusty from customers. Besides that, we had formed efficient marketing service system through the long-term business relationship with countries of Europe and the United States countries, also Southeast Asia and Middle East etc.  
With the faith of “People-Oriented, Class A Quality, Sincere Service”, We are looking forward to join hands with YOU to create a better  future!Sparkle Grey Quartz Stone Tiles suppliers
website:http://www.stonemanufacturerguides.com/

What’s the difference between cards, panels, and tiles?

It seems as if with some of the modern front-end development frameworks there is a blur between the different types of ‘container’ elements. Whether this is an attempt to abstract the design from implementation or if this is due to there not being any standardization of terminologies I am not sure, but it leads to the fact that in some design frameworks I see the term panels being used but not cards (e.g. Bootstrap 3) while in others the term cards exists but not panels (e.g. Iconic), and perhaps both exist in others?

From a design perspective, it seems that both cards and panels are just containers, and since there’s nothing that defines how big a card can get and how small a panel can be, I am wondering whether there’s really any difference. From an implementation perspective, it seems that cards should be used for smaller size design elements and are preferred on mobile specific applications, whereas panels are used for a wider range of design elements and are preferred on desktop specific applications.

Is there any evidence/reference/examples that will help to illustrate or highlight the (lack of) differences? For some reason I think cards and tiles are more closely related to each other, and that panels seem to be in a slightly different class/family?

If we take the argument that there are no differences, then it is hard to understand why people associate ’tiles’ with Microsoft ‘Metro’ style home pages, while on Google and Android apps it is ‘cards’ and for Java and Gnome applications it is ‘panels’. Perhaps there are some contextual or implementation differences?

UPDATE: with the release of Bootstrap 4, it seems like cards are basically equivalent to panels (since one component has replaced the other), but with this comes the cost of having to maintain a more flexible container that will make it difficult to implement consistently. According to Bootstrap:

A flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.

FURTHER UPDATE: It seems as if Bootstrap 5 and Material.io have adopted the card UI component in the new world of responsive and mobile first/multi-device ecosystem design systems while “tiles” have a very specific meaning in the Microsoft Fluent Design System:

A tile is an app’s representation on the Start menu. Every app has a tile. When you create a new Universal Windows Platform (UWP) app project in Microsoft Visual Studio, it includes a default tile that displays your app’s name and logo

Panels don’t seem to be part of the vocabulary anymore, as least in terms of a UI component, but in the Microsoft and Java world it still represents an abstract concept of organisation layouts of UI components.

Tiles not centered within web part in Sharepoint 2013

I am completely new to SharePoint and trying to design/create a page as requested by the company I work for. The issue I’m having is all the tiles I’ve created within a web part are aligned left. I did create a script editor and added a code that would automatically wrap the tiles so those scroll bars won’t appear; however the tiles are not lined up. Any way this can be achieved please? Thanks.enter image description here

Can i set the defualt view for my Document library inside modern experience to Tiles instead of List

I have added a new document library to my sharepoint online team site. and when i access the document library on Modern Experience, i will get this :-

enter image description here

which will render the documents using the List view. and i can change the List view to Tiles as follow:-

enter image description here

but my question is how i can set the defualt view for my document library to be Tiles instead of List? and if this can be achieved, then if i add this document library inside a modern page using the modern document library(preview) web part, will the document library get rendered in Tiles view inside the modern page?

Refrescar un contenedor y no toda la página completa Apache Tiles – Struts2

Por favor espero que me puedan ayudar con este tema que me tiene preocupado mucho. Resulta que estoy haciendo una pagina web con el framework Struts2 y Apache Tiles 2.1, el tema es que cuando quiero actualizar solo el body , se refresca toda la pagina incluido los menus y el footer. Como podría solucionar este tema, quiero que tenga las mismas caracteristicas de un SPA , no estoy usando angularJS ya que el proyecto esta muy avanzado. Acá dejo el código de mi web.xml

      <context-param>        <param-name>           org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG        </param-name>        <param-value>           /WEB-INF/tiles.xml        </param-value>        </context-param>  <!-- registramos el filtro controlador de struts 2 -->       <filter>         <filter-name>struts2</filter-name>         <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>              <init-param>             <param-name>struts.devMode</param-name>             <param-value>true</param-value>         </init-param>         <init-param>             <param-name>struts.custom.i18n.resources</param-name>             <param-value>ApplicationResources</param-value>         </init-param>        </filter>        <filter-mapping>         <filter-name>struts2</filter-name>         <url-pattern>/*</url-pattern>       </filter-mapping>         <listener>    <listener-class>       org.apache.struts2.tiles.StrutsTilesListener    </listener-class>    </listener> 

Y esta es la configuracion de mi tiles.xml

<definition name="baseLayout" template="/WEB-INF/template/baseLayout.jsp">          <put-attribute name="title" value="Template" />          <put-attribute name="sidebarLeft" value="/WEB-INF/template/sidebarLeft.jsp"  />          <put-attribute name="sidebarRight" value="/WEB-INF/template/sidebarRight.jsp" />         <put-attribute name="header" value="/WEB-INF/template/header.jsp" />         <put-attribute name="container" value="/WEB-INF/template/body.jsp" />     </definition>       <definition name="tilesPerfil" extends="baseLayout">         <put-attribute name="container" value="templatePerfil" />       </definition>      <definition name="timeLine" extends="templatePerfil">         <put-attribute name="title" value="TimeLime" />         <put-attribute name="contenidoProfile" value="/WEB-INF/pages/perfil/timeLine.jsp" />     </definition> 

De que manera puedo solucionar este problema por favor, solo quiero que se actualice la parte que deseo modificar y no toda la pagina. Algo así como un SPAs. introducir la descripción de la imagen aquí